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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 1394343002: Remove "Search by Image" feature on Chrome for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrometab4
Patch Set: newt's nits Created 5 years, 2 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/android/tab_android.h ('k') | chrome/browser/search_engines/template_url_service_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index d6fc3628fdb6efc98d5d6b552b48b6d85bcfee42..029e63695cdff20bfe14a7672cf6999de2d29ced 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -95,14 +95,6 @@ using content::WebContents;
using navigation_interception::InterceptNavigationDelegate;
using navigation_interception::NavigationParams;
-namespace {
-
-const int kImageSearchThumbnailMinSize = 300 * 300;
-const int kImageSearchThumbnailMaxWidth = 600;
-const int kImageSearchThumbnailMaxHeight = 600;
-
-} // namespace
-
TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) {
CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(web_contents);
if (!core_tab_helper)
@@ -760,17 +752,6 @@ void TabAndroid::LoadOriginalImage(JNIEnv* env, jobject obj) {
render_frame_host->GetRoutingID()));
}
-void TabAndroid::SearchByImageInNewTabAsync(JNIEnv* env, jobject obj) {
- content::RenderFrameHost* render_frame_host =
- web_contents()->GetMainFrame();
- render_frame_host->Send(
- new ChromeViewMsg_RequestThumbnailForContextNode(
- render_frame_host->GetRoutingID(),
- kImageSearchThumbnailMinSize,
- gfx::Size(kImageSearchThumbnailMaxWidth,
- kImageSearchThumbnailMaxHeight)));
-}
-
jlong TabAndroid::GetBookmarkId(JNIEnv* env,
jobject obj,
jboolean only_editable) {
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/search_engines/template_url_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698