Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: ash/mus/window_manager_application.cc

Issue 2411223002: chromeos: Refactor system tray Wi-Fi connect dialog so it works with mash (Closed)
Patch Set: NON_EXPORTED_BASE Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/mus/window_manager_application.cc
diff --git a/ash/mus/window_manager_application.cc b/ash/mus/window_manager_application.cc
index 052987089d806202a7cf664148bc09efe15447c3..47103c4d93b124c6624e2229b064dc047e95414d 100644
--- a/ash/mus/window_manager_application.cc
+++ b/ash/mus/window_manager_application.cc
@@ -30,6 +30,7 @@
#if defined(OS_CHROMEOS)
#include "ash/common/system/chromeos/power/power_status.h"
+#include "ash/mus/network_connect_delegate_mus.h"
#include "chromeos/audio/cras_audio_handler.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/network/network_handler.h"
@@ -41,28 +42,6 @@
namespace ash {
namespace mus {
-#if defined(OS_CHROMEOS)
-// TODO(mash): Replace ui::NetworkConnect::Delegate with a mojo interface on a
-// NetworkConfig service. http://crbug.com/644355
-class WindowManagerApplication::StubNetworkConnectDelegate
- : public ui::NetworkConnect::Delegate {
- public:
- StubNetworkConnectDelegate() {}
- ~StubNetworkConnectDelegate() override {}
-
- void ShowNetworkConfigure(const std::string& network_id) override {}
- void ShowNetworkSettingsForGuid(const std::string& network_id) override {}
- bool ShowEnrollNetwork(const std::string& network_id) override {
- return false;
- }
- void ShowMobileSimDialog() override {}
- void ShowMobileSetupDialog(const std::string& service_path) override {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(StubNetworkConnectDelegate);
-};
-#endif // OS_CHROMEOS
-
WindowManagerApplication::WindowManagerApplication()
: screenlock_state_listener_binding_(this) {}
@@ -130,7 +109,7 @@ void WindowManagerApplication::InitializeComponents() {
chromeos::DBusThreadManager::Get()->GetSystemBus(),
chromeos::DBusThreadManager::Get()->IsUsingFakes());
chromeos::NetworkHandler::Initialize();
- network_connect_delegate_.reset(new StubNetworkConnectDelegate());
+ network_connect_delegate_.reset(new NetworkConnectDelegateMus());
ui::NetworkConnect::Initialize(network_connect_delegate_.get());
// TODO(jamescook): Initialize real audio handler.
chromeos::CrasAudioHandler::InitializeForTesting();

Powered by Google App Engine
This is Rietveld 408576698