OLD | NEW |
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 Loading... |
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 |
OLD | NEW |