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

Unified Diff: extensions/browser/api/power/power_api.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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: extensions/browser/api/power/power_api.h
diff --git a/extensions/browser/api/power/power_api.h b/extensions/browser/api/power/power_api.h
index 7a4a752d2b71951896d09d6b25143933336b94e4..9648e4b7b913d20f1c7cee7e7c0adc20b97b3cbd 100644
--- a/extensions/browser/api/power/power_api.h
+++ b/extensions/browser/api/power/power_api.h
@@ -64,8 +64,7 @@ class PowerAPI : public BrowserContextKeyedAPI,
// Adds an extension lock at |level| for |extension_id|, replacing the
// extension's existing lock, if any.
- void AddRequest(const std::string& extension_id,
- core_api::power::Level level);
+ void AddRequest(const std::string& extension_id, api::power::Level level);
// Removes an extension lock for an extension. Calling this for an
// extension id without a lock will do nothing.
@@ -107,11 +106,11 @@ class PowerAPI : public BrowserContextKeyedAPI,
// Current level used by |power_save_blocker_|. Meaningless if
// |power_save_blocker_| is NULL.
- core_api::power::Level current_level_;
+ api::power::Level current_level_;
// Map from extension ID to the corresponding level for each extension
// that has an outstanding request.
- typedef std::map<std::string, core_api::power::Level> ExtensionLevelMap;
+ typedef std::map<std::string, api::power::Level> ExtensionLevelMap;
ExtensionLevelMap extension_levels_;
DISALLOW_COPY_AND_ASSIGN(PowerAPI);

Powered by Google App Engine
This is Rietveld 408576698