| 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);
|
|
|