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

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

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
6
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/sync/profile_sync_service.h"
9 #include "chrome/browser/sync/profile_sync_service_factory.h"
10 #include "content/public/browser/web_ui.h"
11
12 OptionsSyncSetupHandler::OptionsSyncSetupHandler(
13 ProfileManager* profile_manager) : SyncSetupHandler(profile_manager) {
14 }
15
16 OptionsSyncSetupHandler::~OptionsSyncSetupHandler() {
17 }
18
19 void OptionsSyncSetupHandler::ShowSetupUI() {
20 // Show the Sync Setup page.
21 scoped_ptr<Value> page(Value::CreateStringValue("syncSetup"));
22 web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page);
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698