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

Unified Diff: components/translate/content/browser/content_translate_driver.cc

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/translate/content/browser/content_translate_driver.cc
diff --git a/components/translate/content/browser/content_translate_driver.cc b/components/translate/content/browser/content_translate_driver.cc
index e9a6fe9fe1487de4acd4566b217a1b1a6d7c7dc7..9860c307388dcf0d6b191cccef217af143e12bed 100644
--- a/components/translate/content/browser/content_translate_driver.cc
+++ b/components/translate/content/browser/content_translate_driver.cc
@@ -146,11 +146,9 @@ bool ContentTranslateDriver::HasCurrentPage() {
}
void ContentTranslateDriver::OpenUrlInNewTab(const GURL& url) {
- content::OpenURLParams params(url,
- content::Referrer(),
- NEW_FOREGROUND_TAB,
- ui::PAGE_TRANSITION_LINK,
- false);
+ content::OpenURLParams params(url, content::Referrer(),
+ WindowOpenDisposition::NEW_FOREGROUND_TAB,
+ ui::PAGE_TRANSITION_LINK, false);
navigation_controller_->GetWebContents()->OpenURL(params);
}
« no previous file with comments | « components/sessions/core/tab_restore_service_helper.cc ('k') | components/translate/ios/browser/ios_translate_driver.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698