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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 378253002: Fix translate namespace (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/cocoa/browser_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index f51bf9f2de62bda7bf2b8376e26d8d78c073cd7b..f0e531c42204433ba76405050a7f434171e6a84d 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -492,12 +492,14 @@ void BrowserWindowCocoa::ShowBookmarkAppBubble(
NOTIMPLEMENTED();
}
-void BrowserWindowCocoa::ShowTranslateBubble(content::WebContents* contents,
- translate::TranslateStep step,
- TranslateErrors::Type error_type) {
+void BrowserWindowCocoa::ShowTranslateBubble(
+ content::WebContents* contents,
+ translate::TranslateStep step,
+ translate::TranslateErrors::Type error_type) {
ChromeTranslateClient* chrome_translate_client =
ChromeTranslateClient::FromWebContents(contents);
- LanguageState& language_state = chrome_translate_client->GetLanguageState();
+ translate::LanguageState& language_state =
+ chrome_translate_client->GetLanguageState();
language_state.SetTranslateEnabled(true);
[controller_ showTranslateBubbleForWebContents:contents

Powered by Google App Engine
This is Rietveld 408576698