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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 420713003: Translate: Don't show 'Translated' bubble when the user dismisses the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 127722367afce5cc74b9e9bd949985aaa5f40baa..0be54f9bfdc96f930d61e211c3138d7d61462f61 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1158,7 +1158,8 @@ void BrowserView::ShowBookmarkAppBubble(
void BrowserView::ShowTranslateBubble(content::WebContents* web_contents,
translate::TranslateStep step,
- TranslateErrors::Type error_type) {
+ TranslateErrors::Type error_type,
+ bool is_explicit) {
if (contents_web_view_->HasFocus() &&
!GetLocationBarView()->IsMouseHovered()) {
content::RenderViewHost* rvh = web_contents->GetRenderViewHost();
@@ -1176,7 +1177,7 @@ void BrowserView::ShowTranslateBubble(content::WebContents* web_contents,
TranslateBubbleView::ShowBubble(
GetToolbarView()->GetTranslateBubbleAnchor(), web_contents, step,
- error_type);
+ error_type, is_explicit);
}
#if defined(ENABLE_ONE_CLICK_SIGNIN)

Powered by Google App Engine
This is Rietveld 408576698