| 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/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/browser/automation/automation_provider.h" | 8 #include "chrome/browser/automation/automation_provider.h" |
| 9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "chrome/browser/chromeos/login/authentication_notification_details.h" | 10 #include "chrome/browser/chromeos/login/authentication_notification_details.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 SendReply(screen_name); | 146 SendReply(screen_name); |
| 147 } else { | 147 } else { |
| 148 DVLOG(2) << "Still waiting for " << screen_to_wait_for_; | 148 DVLOG(2) << "Still waiting for " << screen_to_wait_for_; |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 | 151 |
| 152 void WizardControllerObserver::OnSessionStart() { | 152 void WizardControllerObserver::OnSessionStart() { |
| 153 SendReply(kSessionScreenName); | 153 SendReply(kSessionScreenName); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void WizardControllerObserver::OnEulaAccepted() { |
| 157 } |
| 158 |
| 156 void WizardControllerObserver::Observe( | 159 void WizardControllerObserver::Observe( |
| 157 int type, | 160 int type, |
| 158 const content::NotificationSource& source, | 161 const content::NotificationSource& source, |
| 159 const content::NotificationDetails& details) { | 162 const content::NotificationDetails& details) { |
| 160 DCHECK(type == chrome::NOTIFICATION_LOGIN_WEBUI_LOADED); | 163 DCHECK(type == chrome::NOTIFICATION_LOGIN_WEBUI_LOADED); |
| 161 SendReply(WizardController::kLoginScreenName); | 164 SendReply(WizardController::kLoginScreenName); |
| 162 } | 165 } |
| 163 | 166 |
| 164 void WizardControllerObserver::SendReply(const std::string& screen_name) { | 167 void WizardControllerObserver::SendReply(const std::string& screen_name) { |
| 165 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); | 168 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 527 |
| 525 void PhotoCaptureObserver::LocalStateChanged( | 528 void PhotoCaptureObserver::LocalStateChanged( |
| 526 chromeos::UserManager* user_manager) { | 529 chromeos::UserManager* user_manager) { |
| 527 user_manager->RemoveObserver(this); | 530 user_manager->RemoveObserver(this); |
| 528 if (automation_) { | 531 if (automation_) { |
| 529 AutomationJSONReply( | 532 AutomationJSONReply( |
| 530 automation_, reply_message_.release()).SendSuccess(NULL); | 533 automation_, reply_message_.release()).SendSuccess(NULL); |
| 531 } | 534 } |
| 532 delete this; | 535 delete this; |
| 533 } | 536 } |
| OLD | NEW |