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

Unified Diff: chrome/browser/extensions/menu_manager.cc

Issue 10829186: Tabs API is usable without tabs permission. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ETU now SetString()'s for empty values Created 8 years, 4 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/browser/extensions/extension_tabs_apitest.cc ('k') | chrome/browser/extensions/window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/menu_manager.cc
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc
index 9e29835393017c08436e27a6680804e6c361bcb9..aea883daba9f37b4a2b85f64e2ef15997ac31b83 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -643,8 +643,8 @@ void MenuManager::ExecuteCommand(Profile* profile,
// No tab info in a platform app.
if (!extension || !extension->is_platform_app()) {
// Note: web_contents only NULL in unit tests :(
- if (web_contents)
- args->Append(ExtensionTabUtil::CreateTabValue(web_contents));
+ if (web_contents && extension)
+ args->Append(ExtensionTabUtil::CreateTabValue(web_contents, extension));
else
args->Append(new DictionaryValue());
}
« no previous file with comments | « chrome/browser/extensions/extension_tabs_apitest.cc ('k') | chrome/browser/extensions/window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698