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

Side by Side Diff: chrome/browser/automation/automation_provider_observers_chromeos.cc

Issue 10917120: Activate the VariationsService for ChromeOS and ensure that it does not ping the server until the E… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: init Created 8 years, 3 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 (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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698