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

Unified Diff: chrome/renderer/extensions/app_bindings.cc

Issue 10024055: Remove unneeded extension_messages_browsertest.cc + cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windoooowze Created 8 years, 8 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/renderer/extensions/app_bindings.cc
diff --git a/chrome/renderer/extensions/app_bindings.cc b/chrome/renderer/extensions/app_bindings.cc
index a5a902ae13a5199bd5db42089e63e43d0b9c3b2a..40857d9633ff19c8b8bb5dd797c82c2b9da8c16d 100644
--- a/chrome/renderer/extensions/app_bindings.cc
+++ b/chrome/renderer/extensions/app_bindings.cc
@@ -73,10 +73,7 @@ AppBindings::AppBindings(ExtensionDispatcher* dispatcher,
v8::Handle<v8::Value> AppBindings::GetIsInstalled(
const v8::Arguments& args) {
- // TODO(aa): Hm, maybe ExtensionBindingsContext should have GetExtension()
- // afterall?
- const ::Extension* extension =
- extension_dispatcher_->extensions()->GetByID(context_->extension_id());
+ const Extension* extension = context_->extension();
// TODO(aa): Why only hosted app?
bool result = extension && extension->is_hosted_app() &&
« no previous file with comments | « chrome/renderer/extensions/api_definitions_natives.cc ('k') | chrome/renderer/extensions/chrome_v8_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698