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

Side by Side Diff: chrome/browser/ui/webui/options2/options_sync_setup_handler2.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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698