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

Unified Diff: chrome/browser/browser_init.cc

Issue 557026: Disables pinned tabs until I land apps. I've #ifdef parts that are... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc (revision 37310)
+++ chrome/browser/browser_init.cc (working copy)
@@ -588,13 +588,6 @@
if (!profile_ && browser)
profile_ = browser->profile();
- int pin_count = 0;
- if (!browser) {
- std::string pin_count_string =
- command_line_.GetSwitchValueASCII(switches::kPinnedTabCount);
- if (!pin_count_string.empty())
- pin_count = StringToInt(pin_count_string);
- }
if (!browser || browser->type() != Browser::TYPE_NORMAL)
browser = Browser::Create(profile_);
@@ -613,8 +606,6 @@
continue;
TabContents* tab = browser->AddTabWithURL(
urls[i], GURL(), PageTransition::START_PAGE, (i == 0), -1, false, NULL);
- if (i < static_cast<size_t>(pin_count))
- browser->tabstrip_model()->SetTabPinned(browser->tab_count() - 1, true);
if (profile_ && i == 0 && process_startup)
AddCrashedInfoBarIfNecessary(tab);
}
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698