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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 2451463002: [Merge] This patch fills in the TODOs in StartupTabProvider regarding pinned tabs and user preferen… (Closed)
Patch Set: Created 4 years, 2 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/ui/startup/startup_browser_creator_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index 4a7ada3dedaa62b37c4bcc9fa555c01e66fca406..762787f62565ae497d9ea576e5e05c7158fea41e 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -661,7 +661,7 @@ StartupTabs StartupBrowserCreatorImpl::DetermineStartupTabs(
// If the user has set the preference indicating URLs to show on opening,
// read and add those.
- StartupTabs prefs_tabs = provider.GetPreferencesTabs();
+ StartupTabs prefs_tabs = provider.GetPreferencesTabs(command_line_, profile_);
AppendTabs(prefs_tabs, &tabs);
// Potentially add the New Tab Page. Onboarding content is designed to
@@ -671,7 +671,7 @@ StartupTabs StartupBrowserCreatorImpl::DetermineStartupTabs(
tabs.emplace_back(GURL(chrome::kChromeUINewTabURL), false);
// Add any tabs which the user has previously pinned.
- AppendTabs(provider.GetPinnedTabs(), &tabs);
+ AppendTabs(provider.GetPinnedTabs(profile_), &tabs);
return tabs;
}
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698