| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/webui/chromeos/mobile_setup_dialog.h" | 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/mobile/mobile_activator.h" | 10 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 MobileSetupDialogDelegate::MobileSetupDialogDelegate() : dialog_window_(NULL) { | 87 MobileSetupDialogDelegate::MobileSetupDialogDelegate() : dialog_window_(NULL) { |
| 88 } | 88 } |
| 89 | 89 |
| 90 MobileSetupDialogDelegate::~MobileSetupDialogDelegate() { | 90 MobileSetupDialogDelegate::~MobileSetupDialogDelegate() { |
| 91 MobileActivator::GetInstance()->RemoveObserver(this); | 91 MobileActivator::GetInstance()->RemoveObserver(this); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void MobileSetupDialogDelegate::ShowDialog(const std::string& service_path) { | 94 void MobileSetupDialogDelegate::ShowDialog(const std::string& service_path) { |
| 95 service_path_ = service_path; | 95 service_path_ = service_path; |
| 96 dialog_window_ = browser::ShowWebDialog( | 96 dialog_window_ = chrome::ShowWebDialog( |
| 97 NULL, | 97 NULL, |
| 98 ProfileManager::GetDefaultProfileOrOffTheRecord(), | 98 ProfileManager::GetDefaultProfileOrOffTheRecord(), |
| 99 this); | 99 this); |
| 100 } | 100 } |
| 101 | 101 |
| 102 ui::ModalType MobileSetupDialogDelegate::GetDialogModalType() const { | 102 ui::ModalType MobileSetupDialogDelegate::GetDialogModalType() const { |
| 103 return ui::MODAL_TYPE_SYSTEM; | 103 return ui::MODAL_TYPE_SYSTEM; |
| 104 } | 104 } |
| 105 | 105 |
| 106 string16 MobileSetupDialogDelegate::GetDialogTitle() const { | 106 string16 MobileSetupDialogDelegate::GetDialogTitle() const { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 bool MobileSetupDialogDelegate::HandleContextMenu( | 156 bool MobileSetupDialogDelegate::HandleContextMenu( |
| 157 const content::ContextMenuParams& params) { | 157 const content::ContextMenuParams& params) { |
| 158 return true; | 158 return true; |
| 159 } | 159 } |
| 160 | 160 |
| 161 void MobileSetupDialogDelegate::OnActivationStateChanged( | 161 void MobileSetupDialogDelegate::OnActivationStateChanged( |
| 162 CellularNetwork* network, | 162 CellularNetwork* network, |
| 163 MobileActivator::PlanActivationState state, | 163 MobileActivator::PlanActivationState state, |
| 164 const std::string& error_description) { | 164 const std::string& error_description) { |
| 165 } | 165 } |
| OLD | NEW |