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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.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_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 5f0a158e0a8e55db4e42b29bb8cebb72fa6014f0..2d5cd68e49e76e6dcfba2223ad5cb5ce022adc1b 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1751,7 +1751,8 @@ using web_modal::WebContentsModalDialogManager;
- (void)showTranslateBubbleForWebContents:(content::WebContents*)contents
step:(translate::TranslateStep)step
- errorType:(TranslateErrors::Type)errorType {
+ errorType:(translate::TranslateErrors::Type)
+ errorType {
droger 2014/07/09 07:52:43 Is this the indentation given by the auto-formatte
nshaik 2014/07/09 08:56:51 Yes.
// TODO(hajimehoshi): The similar logic exists at TranslateBubbleView::
// ShowBubble. This should be unified.
if (translateBubbleController_) {
@@ -1777,10 +1778,12 @@ using web_modal::WebContentsModalDialogManager;
ChromeTranslateClient::GetTranslateLanguages(
contents, &sourceLanguage, &targetLanguage);
- scoped_ptr<TranslateUIDelegate> uiDelegate(new TranslateUIDelegate(
- ChromeTranslateClient::GetManagerFromWebContents(contents)->GetWeakPtr(),
- sourceLanguage,
- targetLanguage));
+ scoped_ptr<translate::TranslateUIDelegate> uiDelegate(
+ new translate::TranslateUIDelegate(
+ ChromeTranslateClient::GetManagerFromWebContents(contents)
+ ->GetWeakPtr(),
+ sourceLanguage,
+ targetLanguage));
scoped_ptr<TranslateBubbleModel> model(
new TranslateBubbleModelImpl(step, uiDelegate.Pass()));
translateBubbleController_ = [[TranslateBubbleController alloc]

Powered by Google App Engine
This is Rietveld 408576698