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

Unified Diff: chrome/browser/apps/install_chrome_app.cc

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: 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/apps/install_chrome_app.cc
diff --git a/chrome/browser/apps/install_chrome_app.cc b/chrome/browser/apps/install_chrome_app.cc
index 801684c30729bc72cf07c7cf97932592544b4cca..0f5fc2fa66f1e43481d27549e5f793b8e2a3193f 100644
--- a/chrome/browser/apps/install_chrome_app.cc
+++ b/chrome/browser/apps/install_chrome_app.cc
@@ -80,8 +80,7 @@ void InstallChromeApp(const std::string& app_id) {
// At the moment InstallChromeApp() is called immediately after handling
// startup URLs, so a browser is guaranteed to be created. If that changes we
// may need to start a browser or browser session here.
- Browser* browser =
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->get(0);
+ Browser* browser = BrowserList::GetInstance()->get(0);
DCHECK(browser);
content::OpenURLParams params(GetAppInstallUrl(app_id),
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | chrome/browser/memory/tab_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698