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

Side by Side Diff: components/user_prefs/user_prefs.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_USER_PREFS_USER_PREFS_H_ 5 #ifndef COMPONENTS_USER_PREFS_USER_PREFS_H_
6 #define COMPONENTS_USER_PREFS_USER_PREFS_H_ 6 #define COMPONENTS_USER_PREFS_USER_PREFS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "components/user_prefs/user_prefs_export.h" 10 #include "components/user_prefs/user_prefs_export.h"
(...skipping 17 matching lines...) Expand all
28 // Retrieves the PrefService for a given BrowserContext, or NULL if 28 // Retrieves the PrefService for a given BrowserContext, or NULL if
29 // none is attached. 29 // none is attached.
30 static PrefService* Get(content::BrowserContext* context); 30 static PrefService* Get(content::BrowserContext* context);
31 31
32 // Hangs the specified |prefs| off of |context|. Should be called 32 // Hangs the specified |prefs| off of |context|. Should be called
33 // only once per BrowserContext. 33 // only once per BrowserContext.
34 static void Set(content::BrowserContext* context, PrefService* prefs); 34 static void Set(content::BrowserContext* context, PrefService* prefs);
35 35
36 private: 36 private:
37 explicit UserPrefs(PrefService* prefs); 37 explicit UserPrefs(PrefService* prefs);
38 virtual ~UserPrefs(); 38 ~UserPrefs() override;
39 39
40 // Non-owning; owned by embedder. 40 // Non-owning; owned by embedder.
41 PrefService* prefs_; 41 PrefService* prefs_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(UserPrefs); 43 DISALLOW_COPY_AND_ASSIGN(UserPrefs);
44 }; 44 };
45 45
46 } // namespace user_prefs 46 } // namespace user_prefs
47 47
48 #endif // COMPONENTS_USER_PREFS_USER_PREFS_H_ 48 #endif // COMPONENTS_USER_PREFS_USER_PREFS_H_
OLDNEW
« no previous file with comments | « components/user_manager/user.h ('k') | components/variations/caching_permuted_entropy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698