OLD | NEW |
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 Loading... |
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 |
OLD | NEW |