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

Unified Diff: chrome/browser/ui/webui/options/startup_pages_handler.cc

Issue 2924943002: MD Settings/On Startup: ignore current tab when using current pages (Closed)
Patch Set: ignore_contents Created 3 years, 6 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/webui/options/startup_pages_handler.cc
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
index b80a4c07e3cae148ce1e6c4de6a7ddd9be123afb..70e46552469e1a49e082c016f85aae1446bbedcd 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -150,7 +150,8 @@ void StartupPagesHandler::OnItemsRemoved(int start, int length) {
void StartupPagesHandler::SetStartupPagesToCurrentPages(
const base::ListValue* args) {
- startup_custom_pages_table_model_->SetToCurrentlyOpenPages();
+ startup_custom_pages_table_model_->SetToCurrentlyOpenPages(
+ web_ui()->GetWebContents());
}
void StartupPagesHandler::RemoveStartupPages(const base::ListValue* args) {
« no previous file with comments | « chrome/browser/custom_home_pages_table_model.cc ('k') | chrome/browser/ui/webui/settings/settings_startup_pages_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698