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

Unified Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 23200006: Don't show the search-by-image menu item when the image is blocked (no image pixel data) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: use ContextMenuParams::has_image_contents to check image's availability Created 7 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
Index: chrome/browser/renderer_host/chrome_render_view_host_observer.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_view_host_observer.cc (revision 218359)
+++ chrome/browser/renderer_host/chrome_render_view_host_observer.cc (working copy)
@@ -206,6 +206,8 @@
// request based on the received thumbnail and opens the request in a new tab.
void ChromeRenderViewHostObserver::OnRequestThumbnailForContextNodeACK(
const SkBitmap& bitmap) {
+ if (bitmap.isNull())
+ return;
WebContents* web_contents =
WebContents::FromRenderViewHost(render_view_host());
const TemplateURL* const default_provider =

Powered by Google App Engine
This is Rietveld 408576698