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

Side by Side Diff: chrome/browser/ui/webui/options/options_sync_setup_handler.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
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/options/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 "content/browser/webui/web_ui.h"
9 10
10 OptionsSyncSetupHandler::OptionsSyncSetupHandler( 11 OptionsSyncSetupHandler::OptionsSyncSetupHandler(
11 ProfileManager* profile_manager) : SyncSetupHandler(profile_manager) { 12 ProfileManager* profile_manager) : SyncSetupHandler(profile_manager) {
12 } 13 }
13 14
14 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() { 15 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() {
15 } 16 }
16 17
17 void OptionsSyncSetupHandler::StepWizardForShowSetupUI() { 18 void OptionsSyncSetupHandler::StepWizardForShowSetupUI() {
18 ProfileSyncService* service = 19 ProfileSyncService* service =
(...skipping 11 matching lines...) Expand all
30 } else { 31 } else {
31 service->get_wizard().Step(SyncSetupWizard::GetLoginState()); 32 service->get_wizard().Step(SyncSetupWizard::GetLoginState());
32 } 33 }
33 } 34 }
34 35
35 void OptionsSyncSetupHandler::ShowSetupUI() { 36 void OptionsSyncSetupHandler::ShowSetupUI() {
36 // Show the Sync Setup page. 37 // Show the Sync Setup page.
37 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup")); 38 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup"));
38 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page); 39 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page);
39 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698