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/options2/options_sync_setup_handler.h" | 5 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.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 "chrome/browser/sync/profile_sync_service_factory.h" | 9 #include "chrome/browser/sync/profile_sync_service_factory.h" |
10 #include "content/public/browser/web_ui.h" | 10 #include "content/public/browser/web_ui.h" |
11 | 11 |
12 namespace options { | 12 namespace options { |
13 | 13 |
14 OptionsSyncSetupHandler::OptionsSyncSetupHandler( | 14 OptionsSyncSetupHandler::OptionsSyncSetupHandler( |
15 ProfileManager* profile_manager) : SyncSetupHandler(profile_manager) { | 15 ProfileManager* profile_manager) : SyncSetupHandler(profile_manager) { |
16 } | 16 } |
17 | 17 |
18 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() { | 18 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() { |
19 } | 19 } |
20 | 20 |
21 void OptionsSyncSetupHandler::ShowSetupUI() { | 21 void OptionsSyncSetupHandler::ShowSetupUI() { |
22 // Show the Sync Setup page. | 22 // Show the Sync Setup page. |
23 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup")); | 23 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup")); |
24 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page); | 24 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page); |
25 } | 25 } |
26 | 26 |
27 } // namespace options | 27 } // namespace options |
OLD | NEW |