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

Side by Side Diff: chrome/browser/ui/webui/ntp/most_visited_handler.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/ntp/most_visited_handler.h" 5 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 open_urls.count(url) != 0) { 323 open_urls.count(url) != 0) {
324 pages_value_->Remove(*page_value, &i); 324 pages_value_->Remove(*page_value, &i);
325 } else { 325 } else {
326 ++i; 326 ++i;
327 } 327 }
328 } 328 }
329 #endif 329 #endif
330 } 330 }
331 331
332 // static 332 // static
333 void MostVisitedHandler::RegisterUserPrefs( 333 void MostVisitedHandler::RegisterProfilePrefs(
334 user_prefs::PrefRegistrySyncable* registry) { 334 user_prefs::PrefRegistrySyncable* registry) {
335 registry->RegisterDictionaryPref( 335 registry->RegisterDictionaryPref(
336 prefs::kNtpMostVisitedURLsBlacklist, 336 prefs::kNtpMostVisitedURLsBlacklist,
337 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 337 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
338 } 338 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/most_visited_handler.h ('k') | chrome/browser/ui/webui/ntp/new_tab_page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698