| 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 translate { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const char kAboutGoogleTranslateURL[] = | 17 const char kAboutGoogleTranslateURL[] = |
| 18 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 19 "https://support.google.com/chromeos/?p=ib_translation_bar"; | 19 "https://support.google.com/chromebook/?p=ib_translation_bar"; |
| 20 #else | 20 #else |
| 21 "https://support.google.com/chrome/?p=ib_translation_bar"; | 21 "https://support.google.com/chrome/?p=ib_translation_bar"; |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 } // namespace | 24 } // namespace |
| 25 | 25 |
| 26 OptionsMenuModel::OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate) | 26 OptionsMenuModel::OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate) |
| 27 : ui::SimpleMenuModel(this), | 27 : ui::SimpleMenuModel(this), |
| 28 translate_infobar_delegate_(translate_delegate) { | 28 translate_infobar_delegate_(translate_delegate) { |
| 29 // |translate_delegate| must already be owned. | 29 // |translate_delegate| must already be owned. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 break; | 132 break; |
| 133 } | 133 } |
| 134 | 134 |
| 135 default: | 135 default: |
| 136 NOTREACHED() << "Invalid command id from menu."; | 136 NOTREACHED() << "Invalid command id from menu."; |
| 137 break; | 137 break; |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace translate | 141 } // namespace translate |
| OLD | NEW |