forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system_tray_delegate_mus.cc
42 lines (31 loc) · 1.16 KB
/
system_tray_delegate_mus.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/mus/system_tray_delegate_mus.h"
#include "ash/system/networking_config_delegate.h"
namespace ash {
namespace {
// TODO(mash): Provide a real implementation, perhaps by folding its behavior
// into an ash-side network information cache. http://crbug.com/651157
class StubNetworkingConfigDelegate : public NetworkingConfigDelegate {
public:
StubNetworkingConfigDelegate() {}
~StubNetworkingConfigDelegate() override {}
private:
// NetworkingConfigDelegate:
std::unique_ptr<const ExtensionInfo> LookUpExtensionForNetwork(
const std::string& guid) override {
return nullptr;
}
DISALLOW_COPY_AND_ASSIGN(StubNetworkingConfigDelegate);
};
} // namespace
SystemTrayDelegateMus::SystemTrayDelegateMus()
: networking_config_delegate_(new StubNetworkingConfigDelegate) {}
SystemTrayDelegateMus::~SystemTrayDelegateMus() {
}
NetworkingConfigDelegate* SystemTrayDelegateMus::GetNetworkingConfigDelegate()
const {
return networking_config_delegate_.get();
}
} // namespace ash