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

Side by Side Diff: chrome/browser/ui/webui/instant_ui.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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) 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/instant_ui.h" 5 #include "chrome/browser/ui/webui/instant_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) { 162 InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) {
163 web_ui->AddMessageHandler(new InstantUIMessageHandler()); 163 web_ui->AddMessageHandler(new InstantUIMessageHandler());
164 164
165 // Set up the chrome://instant/ source. 165 // Set up the chrome://instant/ source.
166 Profile* profile = Profile::FromWebUI(web_ui); 166 Profile* profile = Profile::FromWebUI(web_ui);
167 content::WebUIDataSource::Add(profile, CreateInstantHTMLSource()); 167 content::WebUIDataSource::Add(profile, CreateInstantHTMLSource());
168 } 168 }
169 169
170 // static 170 // static
171 void InstantUI::RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 171 void InstantUI::RegisterProfilePrefs(
172 user_prefs::PrefRegistrySyncable* registry) {
172 registry->RegisterStringPref( 173 registry->RegisterStringPref(
173 prefs::kInstantUIZeroSuggestUrlPrefix, 174 prefs::kInstantUIZeroSuggestUrlPrefix,
174 std::string(), 175 std::string(),
175 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 176 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
176 } 177 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/instant_ui.h ('k') | chrome/browser/ui/webui/ntp/android/promo_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698