diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 22:27:38 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 22:27:38 +0000 |
commit | d5c23bed766a0182441bfe487345c1fa448cfe82 (patch) | |
tree | 358d8fe2b19852a769bbf4940db57973ef71f391 /chrome/browser/ui/browser_init.h | |
parent | e8bc14b6734a89269018927610fac86dca73de56 (diff) | |
download | chromium_src-d5c23bed766a0182441bfe487345c1fa448cfe82.zip chromium_src-d5c23bed766a0182441bfe487345c1fa448cfe82.tar.gz chromium_src-d5c23bed766a0182441bfe487345c1fa448cfe82.tar.bz2 |
Makes browser init not duplicate any tabs that are in both the set of
startup urls and last of pinned tabs.
BUG=67227
TEST=see bug
R=brettw@chromium.org
Review URL: http://codereview.chromium.org/6705010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_init.h')
-rw-r--r-- | chrome/browser/ui/browser_init.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_init.h b/chrome/browser/ui/browser_init.h index 61fcbc7..2c3e456 100644 --- a/chrome/browser/ui/browser_init.h +++ b/chrome/browser/ui/browser_init.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -165,6 +165,11 @@ class BrowserInit { // new browser. bool ProcessStartupURLs(const std::vector<GURL>& urls_to_open); + // Adds a Tab to |tabs| for each url in |urls| that doesn't already exist + // in |tabs|. + void AddUniqueURLs(const std::vector<GURL> urls, + std::vector<Tab>* tabs); + // Adds any startup infobars to the selected tab of the given browser. void AddInfoBarsIfNecessary(Browser* browser); |