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

Unified Diff: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.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/runtime/chrome_runtime_api_delegate.cc
diff --git a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
index 0bab64671cca7f556ae87c4d6540269a354bae79..08231f639315babfed66f03e482d2ddc50494d33 100644
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -169,8 +169,7 @@ bool ChromeRuntimeAPIDelegate::CheckForUpdates(
void ChromeRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) {
Profile* profile = Profile::FromBrowserContext(browser_context_);
- Browser* browser =
- chrome::FindLastActiveWithProfile(profile, chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindLastActiveWithProfile(profile);
if (!browser)
browser =
new Browser(Browser::CreateParams(profile, chrome::GetActiveDesktop()));
@@ -241,8 +240,7 @@ bool ChromeRuntimeAPIDelegate::RestartDevice(std::string* error_message) {
bool ChromeRuntimeAPIDelegate::OpenOptionsPage(const Extension* extension) {
Profile* profile = Profile::FromBrowserContext(browser_context_);
- Browser* browser =
- chrome::FindLastActiveWithProfile(profile, chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindLastActiveWithProfile(profile);
if (!browser)
return false;
return extensions::ExtensionTabUtil::OpenOptionsPage(extension, browser);
« no previous file with comments | « chrome/browser/extensions/api/extension_action/extension_action_api.cc ('k') | chrome/browser/extensions/bundle_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698