| Index: chrome/browser/extensions/extension_context_menu_model.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_context_menu_model.cc (revision 45751)
|
| +++ chrome/browser/extensions/extension_context_menu_model.cc (working copy)
|
| @@ -74,7 +74,7 @@
|
| // hosting the extension. For other 3rd party extensions we don't have a
|
| // homepage url, so we just disable this menu item on those cases, at least
|
| // for now.
|
| - return extension_->update_url().DomainIs("google.com");
|
| + return extension_->GalleryUrl().is_valid();
|
| } else if (command_id == INSPECT_POPUP) {
|
| TabContents* contents = browser_->GetSelectedTabContents();
|
| if (!contents)
|
| @@ -93,9 +93,8 @@
|
| void ExtensionContextMenuModel::ExecuteCommand(int command_id) {
|
| switch (command_id) {
|
| case NAME: {
|
| - GURL url(std::string(extension_urls::kGalleryBrowsePrefix) +
|
| - std::string("/detail/") + extension_->id());
|
| - browser_->OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
|
| + browser_->OpenURL(extension_->GalleryUrl(), GURL(),
|
| + NEW_FOREGROUND_TAB, PageTransition::LINK);
|
| break;
|
| }
|
| case CONFIGURE:
|
|
|