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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_action_api.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/extensions/api/extension_action/extension_action_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_action_api.cc b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
index fcca92186379f7f597be774b983dca442c75efe5..1af27cb18542297342f1d8844727de3d8da819b1 100644
--- a/chrome/browser/extensions/api/extension_action/extension_action_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
@@ -616,8 +616,7 @@ BrowserActionOpenPopupFunction::BrowserActionOpenPopupFunction()
bool BrowserActionOpenPopupFunction::RunAsync() {
// We only allow the popup in the active window.
Profile* profile = GetProfile();
- Browser* browser = chrome::FindLastActiveWithProfile(
- profile, chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindLastActiveWithProfile(profile);
// It's possible that the last active browser actually corresponds to the
// associated incognito profile, and this won't be returned by
// FindLastActiveWithProfile. If the browser we found isn't active and the
@@ -625,8 +624,8 @@ bool BrowserActionOpenPopupFunction::RunAsync() {
if ((!browser || !browser->window()->IsActive()) &&
util::IsIncognitoEnabled(extension()->id(), profile) &&
profile->HasOffTheRecordProfile()) {
- browser = chrome::FindLastActiveWithProfile(
- profile->GetOffTheRecordProfile(), chrome::GetActiveDesktop());
+ browser =
+ chrome::FindLastActiveWithProfile(profile->GetOffTheRecordProfile());
}
// If there's no active browser, or the Toolbar isn't visible, abort.

Powered by Google App Engine
This is Rietveld 408576698