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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 10310182: Hack to restrict runtime API to dev channel rather than experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs Created 8 years, 7 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
« no previous file with comments | « chrome/common/extensions_api_resources.grd ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_dispatcher.h
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index cb7f60ad15cceaa269b238fdd888c7dafee882d7..086656fd46e77181167df2b4ecdab8118bc3a5ce 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -122,6 +122,7 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
virtual void WebKitInitialized() OVERRIDE;
virtual void IdleNotification() OVERRIDE;
+ void OnSetChannel(int channel);
void OnMessageInvoke(const std::string& extension_id,
const std::string& function_name,
const base::ListValue& args,
@@ -237,6 +238,10 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
// Sends API requests to the extension host.
scoped_ptr<ExtensionRequestSender> request_sender_;
+ // The current channel. From VersionInfo::GetChannel().
+ // TODO(aa): Remove when we can restrict non-permission APIs to dev-only.
+ int chrome_channel_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
};
« no previous file with comments | « chrome/common/extensions_api_resources.grd ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698