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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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/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/stl_util.h" 10 #include "base/stl_util.h"
10 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "chrome/browser/net/url_fixer_upper.h" 13 #include "chrome/browser/net/url_fixer_upper.h"
13 #include "chrome/browser/prefs/pref_registry_syncable.h" 14 #include "chrome/browser/prefs/pref_registry_syncable.h"
14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/notification_details.h" 18 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 using extensions::URLMatcher; 23 using extensions::URLMatcher;
24 using extensions::URLMatcherCondition; 24 using extensions::URLMatcherCondition;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 // static 362 // static
363 void URLBlacklistManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { 363 void URLBlacklistManager::RegisterUserPrefs(PrefRegistrySyncable* registry) {
364 registry->RegisterListPref(prefs::kUrlBlacklist, 364 registry->RegisterListPref(prefs::kUrlBlacklist,
365 PrefRegistrySyncable::UNSYNCABLE_PREF); 365 PrefRegistrySyncable::UNSYNCABLE_PREF);
366 registry->RegisterListPref(prefs::kUrlWhitelist, 366 registry->RegisterListPref(prefs::kUrlWhitelist,
367 PrefRegistrySyncable::UNSYNCABLE_PREF); 367 PrefRegistrySyncable::UNSYNCABLE_PREF);
368 } 368 }
369 369
370 } // namespace policy 370 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_statistics_collector.cc ('k') | chrome/browser/policy/url_blacklist_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698