OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/google/google_util.h" | 9 #include "chrome/browser/google/google_util.h" |
10 #include "chrome/browser/infobars/infobar_tab_helper.h" | 10 #include "chrome/browser/infobars/infobar_tab_helper.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 translate_infobar_delegate_->ReportLanguageDetectionError(); | 133 translate_infobar_delegate_->ReportLanguageDetectionError(); |
134 break; | 134 break; |
135 | 135 |
136 case IDC_TRANSLATE_OPTIONS_ABOUT: { | 136 case IDC_TRANSLATE_OPTIONS_ABOUT: { |
137 TabContents* tab_contents = | 137 TabContents* tab_contents = |
138 translate_infobar_delegate_->owner()->tab_contents(); | 138 translate_infobar_delegate_->owner()->tab_contents(); |
139 if (tab_contents) { | 139 if (tab_contents) { |
140 GURL about_url = google_util::AppendGoogleLocaleParam( | 140 GURL about_url = google_util::AppendGoogleLocaleParam( |
141 GURL(kAboutGoogleTranslateUrl)); | 141 GURL(kAboutGoogleTranslateUrl)); |
142 tab_contents->OpenURL( | 142 tab_contents->OpenURL( |
143 about_url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); | 143 about_url, GURL(), NEW_FOREGROUND_TAB, |
| 144 content::PAGE_TRANSITION_LINK); |
144 } | 145 } |
145 break; | 146 break; |
146 } | 147 } |
147 | 148 |
148 default: | 149 default: |
149 NOTREACHED() << "Invalid command id from menu."; | 150 NOTREACHED() << "Invalid command id from menu."; |
150 break; | 151 break; |
151 } | 152 } |
152 } | 153 } |
OLD | NEW |