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

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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/extensions/api/autotest_private/autotest_private_api.h
diff --git a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
index 4baeae27d06672071abdc8d7d1ed0ba5ca96230c..817524660cf4db77751c343d25836f108b284956 100644
--- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
+++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.h
@@ -8,8 +8,8 @@
#include <string>
#include "base/compiler_specific.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
namespace extensions {
@@ -87,21 +87,22 @@ class AutotestPrivateSimulateAsanMemoryBugFunction
void SetAutotestPrivateTest();
// The profile-keyed service that manages the autotestPrivate extension API.
-class AutotestPrivateAPI : public ProfileKeyedAPI {
+class AutotestPrivateAPI : public BrowserContextKeyedAPI {
public:
- static ProfileKeyedAPIFactory<AutotestPrivateAPI>* GetFactoryInstance();
+ static BrowserContextKeyedAPIFactory<AutotestPrivateAPI>*
+ GetFactoryInstance();
// TODO(achuith): Replace these with a mock object for system calls.
bool test_mode() const { return test_mode_; }
void set_test_mode(bool test_mode) { test_mode_ = test_mode; }
private:
- friend class ProfileKeyedAPIFactory<AutotestPrivateAPI>;
+ friend class BrowserContextKeyedAPIFactory<AutotestPrivateAPI>;
AutotestPrivateAPI();
virtual ~AutotestPrivateAPI();
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() { return "AutotestPrivateAPI"; }
static const bool kServiceIsNULLWhileTesting = true;
static const bool kServiceRedirectedInIncognito = true;
@@ -111,7 +112,7 @@ class AutotestPrivateAPI : public ProfileKeyedAPI {
template <>
BrowserContextKeyedService*
- ProfileKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor(
+ BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor(
content::BrowserContext* context) const;
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698