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

Side by Side Diff: components/translate/core/browser/options_menu_model.cc

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/translate/core/browser/options_menu_model.h" 5 #include "components/translate/core/browser/options_menu_model.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "components/translate/core/browser/translate_driver.h" 8 #include "components/translate/core/browser/translate_driver.h"
9 #include "components/translate/core/browser/translate_infobar_delegate.h" 9 #include "components/translate/core/browser/translate_infobar_delegate.h"
10 #include "grit/components_strings.h" 10 #include "grit/components_strings.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 12
13 namespace translate {
14
13 namespace { 15 namespace {
14 16
15 const char kAboutGoogleTranslateURL[] = 17 const char kAboutGoogleTranslateURL[] =
16 #if defined(OS_CHROMEOS) 18 #if defined(OS_CHROMEOS)
17 "https://support.google.com/chromeos/?p=ib_translation_bar"; 19 "https://support.google.com/chromeos/?p=ib_translation_bar";
18 #else 20 #else
19 "https://support.google.com/chrome/?p=ib_translation_bar"; 21 "https://support.google.com/chrome/?p=ib_translation_bar";
20 #endif 22 #endif
21 23
22 } // namespace 24 } // namespace
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 if (translate_driver) 130 if (translate_driver)
129 translate_driver->OpenUrlInNewTab(GURL(kAboutGoogleTranslateURL)); 131 translate_driver->OpenUrlInNewTab(GURL(kAboutGoogleTranslateURL));
130 break; 132 break;
131 } 133 }
132 134
133 default: 135 default:
134 NOTREACHED() << "Invalid command id from menu."; 136 NOTREACHED() << "Invalid command id from menu.";
135 break; 137 break;
136 } 138 }
137 } 139 }
140
141 } // namespace translate
OLDNEW
« no previous file with comments | « components/translate/core/browser/options_menu_model.h ('k') | components/translate/core/browser/page_translated_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698