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

Side by Side Diff: chrome/browser/ui/ash/network_connect_delegate_chromeos.cc

Issue 2430003002: NetworkConnect::Delegate: service_path -> network_id (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/network_connect_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/network_connect_delegate_chromeos.h"
6 6
7 #include "ash/common/session/session_state_delegate.h" 7 #include "ash/common/session/session_state_delegate.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "chrome/browser/chromeos/enrollment_dialog_view.h" 10 #include "chrome/browser/chromeos/enrollment_dialog_view.h"
(...skipping 12 matching lines...) Expand all
23 gfx::NativeWindow GetNativeWindow() { 23 gfx::NativeWindow GetNativeWindow() {
24 int container_id = SystemTrayClient::GetDialogParentContainerId(); 24 int container_id = SystemTrayClient::GetDialogParentContainerId();
25 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), 25 return ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
26 container_id); 26 container_id);
27 } 27 }
28 28
29 } // namespace 29 } // namespace
30 30
31 namespace chromeos { 31 namespace chromeos {
32 32
33 NetworkConnectDelegateChromeOS::NetworkConnectDelegateChromeOS() { 33 NetworkConnectDelegateChromeOS::NetworkConnectDelegateChromeOS() {}
34 }
35 34
36 NetworkConnectDelegateChromeOS::~NetworkConnectDelegateChromeOS() { 35 NetworkConnectDelegateChromeOS::~NetworkConnectDelegateChromeOS() {}
37 }
38 36
39 void NetworkConnectDelegateChromeOS::ShowNetworkConfigure( 37 void NetworkConnectDelegateChromeOS::ShowNetworkConfigure(
40 const std::string& network_id) { 38 const std::string& network_id) {
41 if (!IsUIAvailable()) 39 if (!IsUIAvailable())
42 return; 40 return;
43 NetworkConfigView::Show(network_id, GetNativeWindow()); 41 NetworkConfigView::ShowByNetworkId(network_id, GetNativeWindow());
44 } 42 }
45 43
46 void NetworkConnectDelegateChromeOS::ShowNetworkSettingsForGuid( 44 void NetworkConnectDelegateChromeOS::ShowNetworkSettings(
47 const std::string& network_id) { 45 const std::string& network_id) {
48 if (!IsUIAvailable()) 46 if (!IsUIAvailable())
49 return; 47 return;
50 SystemTrayClient::Get()->ShowNetworkSettings(network_id); 48 SystemTrayClient::Get()->ShowNetworkSettings(network_id);
51 } 49 }
52 50
53 bool NetworkConnectDelegateChromeOS::ShowEnrollNetwork( 51 bool NetworkConnectDelegateChromeOS::ShowEnrollNetwork(
54 const std::string& network_id) { 52 const std::string& network_id) {
55 if (!IsUIAvailable()) 53 if (!IsUIAvailable())
56 return false; 54 return false;
57 return enrollment::CreateDialog(network_id, GetNativeWindow()); 55 return enrollment::CreateDialog(network_id, GetNativeWindow());
58 } 56 }
59 57
60 void NetworkConnectDelegateChromeOS::ShowMobileSimDialog() { 58 void NetworkConnectDelegateChromeOS::ShowMobileSimDialog() {
61 if (!IsUIAvailable()) 59 if (!IsUIAvailable())
62 return; 60 return;
63 SimDialogDelegate::ShowDialog(GetNativeWindow(), 61 SimDialogDelegate::ShowDialog(GetNativeWindow(),
64 SimDialogDelegate::SIM_DIALOG_UNLOCK); 62 SimDialogDelegate::SIM_DIALOG_UNLOCK);
65 } 63 }
66 64
67 void NetworkConnectDelegateChromeOS::ShowMobileSetupDialog( 65 void NetworkConnectDelegateChromeOS::ShowMobileSetupDialog(
68 const std::string& service_path) { 66 const std::string& network_id) {
69 if (!IsUIAvailable()) 67 if (!IsUIAvailable())
70 return; 68 return;
71 MobileSetupDialog::Show(service_path); 69 MobileSetupDialog::ShowByNetworkId(network_id);
72 } 70 }
73 71
74 } // namespace chromeos 72 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/network_connect_delegate_chromeos.h ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698