summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser.cc
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 05:43:22 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 05:43:22 +0000
commit788cd57617ae5f108f4ce580ac7c187c5ff46a8b (patch)
tree8a0288c46a646ba266c16691a138684f12e9ec98 /chrome/browser/ui/browser.cc
parent98fa0bd20692115ddb1fc22b3c7c0234c7f8534b (diff)
downloadchromium_src-788cd57617ae5f108f4ce580ac7c187c5ff46a8b.zip
chromium_src-788cd57617ae5f108f4ce580ac7c187c5ff46a8b.tar.gz
chromium_src-788cd57617ae5f108f4ce580ac7c187c5ff46a8b.tar.bz2
Honor profile startup settings when opening a window for a profile.
BUG=95076 TEST=no new ones Review URL: http://codereview.chromium.org/8136014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser.cc')
-rw-r--r--chrome/browser/ui/browser.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index a36c249..67bbbb9 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -823,17 +823,6 @@ void Browser::OpenExtensionsWindow(Profile* profile) {
browser->window()->Show();
}
-// static
-void Browser::NewWindowWithProfile(Profile* profile) {
- UserMetrics::RecordAction(UserMetricsAction("NewWindow"));
- SessionService* session_service =
- SessionServiceFactory::GetForProfile(profile->GetOriginalProfile());
- if (!session_service ||
- !session_service->RestoreIfNecessary(std::vector<GURL>())) {
- Browser::OpenEmptyWindow(profile->GetOriginalProfile());
- }
-}
-
///////////////////////////////////////////////////////////////////////////////
// Browser, State Storage and Retrieval for UI: