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

Side by Side Diff: chrome/browser/ui/webui/settings/settings_startup_pages_handler.cc

Issue 2086763002: Don't use deprecated ListValue::Append(Value*) overload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/settings_startup_pages_handler.h" 5 #include "chrome/browser/ui/webui/settings/settings_startup_pages_handler.h"
6 6
7 #include <memory>
7 #include <string> 8 #include <string>
8 #include <utility> 9 #include <utility>
9 #include <vector> 10 #include <vector>
10 11
11 #include "chrome/browser/prefs/session_startup_pref.h" 12 #include "chrome/browser/prefs/session_startup_pref.h"
12 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/webui/settings_utils.h" 14 #include "chrome/browser/ui/webui/settings_utils.h"
14 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
15 #include "content/public/browser/web_ui.h" 16 #include "content/public/browser/web_ui.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 211
211 void StartupPagesHandler::UpdateStartupPages() { 212 void StartupPagesHandler::UpdateStartupPages() {
212 const SessionStartupPref startup_pref = SessionStartupPref::GetStartupPref( 213 const SessionStartupPref startup_pref = SessionStartupPref::GetStartupPref(
213 Profile::FromWebUI(web_ui())->GetPrefs()); 214 Profile::FromWebUI(web_ui())->GetPrefs());
214 startup_custom_pages_table_model_.SetURLs(startup_pref.urls); 215 startup_custom_pages_table_model_.SetURLs(startup_pref.urls);
215 // The change will go to the JS code in the 216 // The change will go to the JS code in the
216 // StartupPagesHandler::OnModelChanged() method. 217 // StartupPagesHandler::OnModelChanged() method.
217 } 218 }
218 219
219 } // namespace settings 220 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/search_engines_handler.cc ('k') | content/browser/media/media_internals_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698