OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/options2/options_sync_setup_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/options_sync_setup_handler2.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/sync/profile_sync_service.h" | 8 #include "chrome/browser/sync/profile_sync_service.h" |
| 9 #include "content/browser/webui/web_ui.h" |
9 | 10 |
10 namespace options2 { | 11 namespace options2 { |
11 | 12 |
12 OptionsSyncSetupHandler::OptionsSyncSetupHandler( | 13 OptionsSyncSetupHandler::OptionsSyncSetupHandler( |
13 ProfileManager* profile_manager) : SyncSetupHandler2(profile_manager) { | 14 ProfileManager* profile_manager) : SyncSetupHandler2(profile_manager) { |
14 } | 15 } |
15 | 16 |
16 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() { | 17 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() { |
17 } | 18 } |
18 | 19 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } else { | 51 } else { |
51 service->get_wizard().Step(SyncSetupWizard::GetLoginState()); | 52 service->get_wizard().Step(SyncSetupWizard::GetLoginState()); |
52 } | 53 } |
53 | 54 |
54 // Show the Sync Setup page. | 55 // Show the Sync Setup page. |
55 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup")); | 56 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup")); |
56 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page); | 57 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page); |
57 } | 58 } |
58 | 59 |
59 } // namespace options2 | 60 } // namespace options2 |
OLD | NEW |