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

Side by Side Diff: chrome/browser/net/http_server_properties_manager.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 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
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 #include "chrome/browser/net/http_server_properties_manager.h" 4 #include "chrome/browser/net/http_server_properties_manager.h"
5 5
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/prefs/pref_registry_syncable.h"
14 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "components/user_prefs/pref_registry_syncable.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 21
22 namespace chrome_browser_net { 22 namespace chrome_browser_net {
23 23
24 namespace { 24 namespace {
25 25
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 completion.Run(); 668 completion.Run();
669 } 669 }
670 670
671 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { 671 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() {
672 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 672 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
673 if (!setting_prefs_) 673 if (!setting_prefs_)
674 ScheduleUpdateCacheOnUI(); 674 ScheduleUpdateCacheOnUI();
675 } 675 }
676 676
677 } // namespace chrome_browser_net 677 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698