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

Unified Diff: chrome/browser/ui/extensions/extension_install_ui_default.cc

Issue 1659203002: Remove HostDesktopType from FindLastActive[WithProfile] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullptr Created 4 years, 11 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: chrome/browser/ui/extensions/extension_install_ui_default.cc
diff --git a/chrome/browser/ui/extensions/extension_install_ui_default.cc b/chrome/browser/ui/extensions/extension_install_ui_default.cc
index b954ca40268b5b4dcb43b75a774fe0e24beef709..18481686c47feb3858127d44048b27e172af6bb3 100644
--- a/chrome/browser/ui/extensions/extension_install_ui_default.cc
+++ b/chrome/browser/ui/extensions/extension_install_ui_default.cc
@@ -211,8 +211,7 @@ void ExtensionInstallUIDefault::OnInstallFailure(
if (disable_failure_ui_for_tests() || skip_post_install_ui_)
return;
- Browser* browser =
- chrome::FindLastActiveWithProfile(profile_, chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindLastActiveWithProfile(profile_);
if (!browser) // Can be NULL in unittests.
return;
WebContents* web_contents =
@@ -256,8 +255,7 @@ void ExtensionInstallUIDefault::SetSkipPostInstallUI(bool skip_ui) {
}
gfx::NativeWindow ExtensionInstallUIDefault::GetDefaultInstallDialogParent() {
- Browser* browser =
- chrome::FindLastActiveWithProfile(profile_, chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindLastActiveWithProfile(profile_);
if (browser) {
content::WebContents* contents =
browser->tab_strip_model()->GetActiveWebContents();

Powered by Google App Engine
This is Rietveld 408576698