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

Side by Side Diff: chrome/browser/extensions/api/preferences_private/preferences_private_api.h

Issue 1776373002: [Extensions] Remove unused parts of the preferencesPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really clean up prefs Created 4 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_AP I_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "components/sync_driver/sync_service_observer.h"
11 #include "extensions/browser/extension_function.h"
12
13 namespace extensions {
14
15 class PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction
16 : public ChromeAsyncExtensionFunction,
17 public sync_driver::SyncServiceObserver {
18 public:
19 DECLARE_EXTENSION_FUNCTION(
20 "preferencesPrivate.getSyncCategoriesWithoutPassphrase",
21 PREFERENCESPRIVATE_GETSYNCCATEGORIESWITHOUTPASSPHRASE)
22
23 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction();
24
25 protected:
26 ~PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction() override;
27
28 private:
29 // sync_driver::SyncServiceObserver:
30 void OnStateChanged() override;
31
32 // ExtensionFunction:
33 bool RunAsync() override;
34
35 DISALLOW_COPY_AND_ASSIGN(
36 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction);
37 };
38
39 } // namespace extensions
40
41 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698