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

Side by Side Diff: chrome/browser/translate/options_menu_model.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698