Index: chrome/browser/automation/testing_automation_provider_chromeos.cc |
diff --git a/chrome/browser/automation/testing_automation_provider_chromeos.cc b/chrome/browser/automation/testing_automation_provider_chromeos.cc |
index 000677fc80e57fb1a11be389e342e0de3872166a..926170b0fb663d37413baef4c8eccac150070d34 100644 |
--- a/chrome/browser/automation/testing_automation_provider_chromeos.cc |
+++ b/chrome/browser/automation/testing_automation_provider_chromeos.cc |
@@ -284,7 +284,11 @@ void TestingAutomationProvider::CancelOOBEUpdate(DictionaryValue* args, |
IPC::Message* reply_message) { |
WizardController* wizard_controller = WizardController::default_controller(); |
if (wizard_controller && wizard_controller->IsOobeCompleted()) { |
- AutomationJSONReply(this, reply_message).SendSuccess(NULL); |
+ // Update already finished. |
+ scoped_ptr<DictionaryValue> return_value(new DictionaryValue); |
+ return_value->SetString("next_screen", |
+ WizardController::kLoginScreenName); |
+ AutomationJSONReply(this, reply_message).SendSuccess(return_value.get()); |
return; |
} |
if (!wizard_controller || wizard_controller->current_screen()->GetName() != |