OLD | NEW |
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 { |
13 namespace { | 14 namespace { |
14 | 15 |
15 const char kAboutGoogleTranslateURL[] = | 16 const char kAboutGoogleTranslateURL[] = |
16 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
17 "https://support.google.com/chromeos/?p=ib_translation_bar"; | 18 "https://support.google.com/chromeos/?p=ib_translation_bar"; |
18 #else | 19 #else |
19 "https://support.google.com/chrome/?p=ib_translation_bar"; | 20 "https://support.google.com/chrome/?p=ib_translation_bar"; |
20 #endif | 21 #endif |
21 | 22 |
22 } // namespace | 23 } // namespace |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 if (translate_driver) | 129 if (translate_driver) |
129 translate_driver->OpenUrlInNewTab(GURL(kAboutGoogleTranslateURL)); | 130 translate_driver->OpenUrlInNewTab(GURL(kAboutGoogleTranslateURL)); |
130 break; | 131 break; |
131 } | 132 } |
132 | 133 |
133 default: | 134 default: |
134 NOTREACHED() << "Invalid command id from menu."; | 135 NOTREACHED() << "Invalid command id from menu."; |
135 break; | 136 break; |
136 } | 137 } |
137 } | 138 } |
| 139 |
| 140 } // namespace translate |
OLD | NEW |