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

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

Issue 243703003: Removes win8_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 6 years, 8 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
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index fc131d545c90400e2a1b7cf7c9f524e49663a93a..7aa201b32592e5247f2a5cff32e4bc1b11c00f99 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -53,10 +53,6 @@
#include "chrome/browser/ui/browser_commands_mac.h"
#endif
-#if defined(OS_WIN)
-#include "win8/util/win8_util.h"
-#endif
-
using content::WebContents;
using extensions::Extension;
using extensions::ExtensionPrefs;
@@ -215,17 +211,7 @@ WebContents* OpenApplicationWindow(const AppLaunchParams& params) {
params.container,
extension);
- Browser* browser = NULL;
-#if defined(OS_WIN)
- // On Windows 8's single window Metro mode we don't allow multiple Chrome
- // windows to be created. We instead attempt to reuse an existing Browser
- // window.
- if (win8::IsSingleWindowMetroMode())
- browser = chrome::FindBrowserWithProfile(profile, params.desktop_type);
-
-#endif
- if (!browser)
- browser = new Browser(browser_params);
+ Browser* browser = new Browser(browser_params);
WebContents* web_contents = chrome::AddSelectedTabWithURL(
browser, url, content::PAGE_TRANSITION_AUTO_TOPLEVEL);
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698