OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/translate/options_menu_model.h" | 5 #include "chrome/browser/translate/options_menu_model.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/browser/translate/translate_infobar_delegate.h" | 14 #include "chrome/browser/translate/translate_infobar_delegate.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const char kAboutGoogleTranslateUrl[] = | 20 const char kAboutGoogleTranslateUrl[] = |
21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
22 "http://www.google.com/support/chromeos/bin/answer.py?answer=173424"; | 22 "http://www.google.com/support/chromeos/bin/answer.py?answer=173424"; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 about_url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); | 129 about_url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); |
130 } | 130 } |
131 break; | 131 break; |
132 } | 132 } |
133 | 133 |
134 default: | 134 default: |
135 NOTREACHED() << "Invalid command id from menu."; | 135 NOTREACHED() << "Invalid command id from menu."; |
136 break; | 136 break; |
137 } | 137 } |
138 } | 138 } |
OLD | NEW |