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

Side by Side Diff: chrome/browser/policy/url_blacklist_manager.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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
« no previous file with comments | « chrome/browser/policy/url_blacklist_manager.h ('k') | chrome/browser/prefs/browser_prefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/policy/url_blacklist_manager.h" 5 #include "chrome/browser/policy/url_blacklist_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 392
393 #if !defined(OS_CHROMEOS) 393 #if !defined(OS_CHROMEOS)
394 if (IsSigninFlowURL(request.url())) 394 if (IsSigninFlowURL(request.url()))
395 return false; 395 return false;
396 #endif 396 #endif
397 397
398 return IsURLBlocked(request.url()); 398 return IsURLBlocked(request.url());
399 } 399 }
400 400
401 // static 401 // static
402 void URLBlacklistManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { 402 void URLBlacklistManager::RegisterUserPrefs(
403 user_prefs::PrefRegistrySyncable* registry) {
403 registry->RegisterListPref(prefs::kUrlBlacklist, 404 registry->RegisterListPref(prefs::kUrlBlacklist,
404 PrefRegistrySyncable::UNSYNCABLE_PREF); 405 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
405 registry->RegisterListPref(prefs::kUrlWhitelist, 406 registry->RegisterListPref(prefs::kUrlWhitelist,
406 PrefRegistrySyncable::UNSYNCABLE_PREF); 407 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
407 } 408 }
408 409
409 } // namespace policy 410 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/url_blacklist_manager.h ('k') | chrome/browser/prefs/browser_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698