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

Unified Diff: chrome/browser/profiles/profile.h

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index f76f30e1b0a9a0d6286a8a236f93471e54b0d5df..90fcb93bf4c9c342b6ea261e75c2b17b9dba0cb0 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -74,31 +74,6 @@ class PrefRegistrySyncable;
// http://dev.chromium.org/developers/design-documents/profile-architecture
class Profile : public content::BrowserContext {
public:
- // Profile services are accessed with the following parameter. This parameter
- // defines what the caller plans to do with the service.
- // The caller is responsible for not performing any operation that would
- // result in persistent implicit records while using an OffTheRecord profile.
- // This flag allows the profile to perform an additional check.
- //
- // It also gives us an opportunity to perform further checks in the future. We
- // could, for example, return an history service that only allow some specific
- // methods.
- enum ServiceAccessType {
- // The caller plans to perform a read or write that takes place as a result
- // of the user input. Use this flag when the operation you are doing can be
- // performed while incognito. (ex: creating a bookmark)
- //
- // Since EXPLICIT_ACCESS means "as a result of a user action", this request
- // always succeeds.
- EXPLICIT_ACCESS,
-
- // The caller plans to call a method that will permanently change some data
- // in the profile, as part of Chrome's implicit data logging. Use this flag
- // when you are about to perform an operation which is incompatible with the
- // incognito mode.
- IMPLICIT_ACCESS
- };
-
enum CreateStatus {
// Profile services were not created due to a local error (e.g., disk full).
CREATE_STATUS_LOCAL_FAIL,
« no previous file with comments | « chrome/browser/profile_resetter/profile_resetter_unittest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698