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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_win.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
Index: chrome/browser/ui/startup/startup_browser_creator_win.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_win.cc b/chrome/browser/ui/startup/startup_browser_creator_win.cc
deleted file mode 100644
index f946e774ca3a2a2f447cb8dccd58c6057e884b0d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/startup/startup_browser_creator_win.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/startup/startup_browser_creator_win.h"
-
-#include "base/logging.h"
-#include "base/win/metro.h"
-#include "chrome/browser/search_engines/util.h"
-#include "chrome/browser/ui/browser_finder.h"
-#include "chrome/browser/ui/browser_window.h"
-#include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
-#include "chrome/common/url_constants.h"
-#include "win8/util/win8_util.h"
-
-namespace chrome {
-
-GURL GetURLToOpen(Profile* profile) {
- base::string16 params;
- base::win::MetroLaunchType launch_type =
- base::win::GetMetroLaunchParams(&params);
- if ((launch_type == base::win::METRO_PROTOCOL) ||
- (launch_type == base::win::METRO_LAUNCH))
- return GURL(params);
- return (launch_type == base::win::METRO_SEARCH) ?
- GetDefaultSearchURLForSearchTerms(profile, params) : GURL();
-}
-
-} // namespace chrome
-
-// static
-bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
- Profile* profile,
- const std::vector<GURL>& startup_urls) {
- if (!win8::IsSingleWindowMetroMode())
- return false;
-
- // We activate an existing browser window if we are opening just the new tab
- // page in metro mode.
- if (startup_urls.size() > 1)
- return false;
-
- if (startup_urls[0] != GURL(chrome::kChromeUINewTabURL))
- return false;
-
- Browser* browser = chrome::FindBrowserWithProfile(
- profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
-
- if (!browser)
- return false;
-
- browser->window()->Show();
- return true;
-}
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_win.h ('k') | chrome/browser/ui/toolbar/wrench_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698