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

Side by Side Diff: chrome/browser/extensions/api/settings_private/settings_private_event_router.h

Issue 2860553002: Clean up most of the ChromeOS headers in non-ChromeOS build (Closed)
Patch Set: add name to TODO Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO UTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/chromeos/settings/cros_settings.h"
13 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" 12 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
14 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
15 #include "components/prefs/pref_change_registrar.h" 14 #include "components/prefs/pref_change_registrar.h"
16 #include "extensions/browser/event_router.h" 15 #include "extensions/browser/event_router.h"
17 16
17 // TODO(wychen): should be guarded by #if defined(OS_CHROMEOS)
tfarina 2017/05/04 00:22:24 Is it a large change if you do it right now?
wychen 2017/05/04 01:19:27 Yes. Similar to the case above, the chromeos:: typ
brettw 2017/05/09 22:55:25 Ditto with the comment. For these TODOs, refereci
wychen 2017/05/10 00:08:14 Done.
18 #include "chrome/browser/chromeos/settings/cros_settings.h"
19
18 namespace content { 20 namespace content {
19 class BrowserContext; 21 class BrowserContext;
20 } 22 }
21 23
22 namespace extensions { 24 namespace extensions {
23 25
24 // This is an event router that will observe listeners to pref changes on the 26 // This is an event router that will observe listeners to pref changes on the
25 // appropriate pref service(s) and notify listeners on the JavaScript 27 // appropriate pref service(s) and notify listeners on the JavaScript
26 // settingsPrivate API. 28 // settingsPrivate API.
27 class SettingsPrivateEventRouter : public KeyedService, 29 class SettingsPrivateEventRouter : public KeyedService,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::unique_ptr<PrefsUtil> prefs_util_; 74 std::unique_ptr<PrefsUtil> prefs_util_;
73 75
74 base::WeakPtrFactory<SettingsPrivateEventRouter> weak_ptr_factory_; 76 base::WeakPtrFactory<SettingsPrivateEventRouter> weak_ptr_factory_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter); 78 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter);
77 }; 79 };
78 80
79 } // namespace extensions 81 } // namespace extensions
80 82
81 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT _ROUTER_H_ 83 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT _ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698