OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/add_startup_page_handler.h" | 5 #include "chrome/browser/dom_ui/options/add_startup_page_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/possible_url_model.h" | 11 #include "chrome/browser/possible_url_model.h" |
12 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "grit/chromium_strings.h" | 15 #include "grit/chromium_strings.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
18 | 18 |
19 AddStartupPageHandler::AddStartupPageHandler() { | 19 AddStartupPageHandler::AddStartupPageHandler() { |
20 } | 20 } |
21 | 21 |
22 AddStartupPageHandler::~AddStartupPageHandler() { | 22 AddStartupPageHandler::~AddStartupPageHandler() { |
23 if (url_table_model_.get()) | 23 if (url_table_model_.get()) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 OnModelChanged(); | 91 OnModelChanged(); |
92 } | 92 } |
93 | 93 |
94 void AddStartupPageHandler::OnItemsAdded(int start, int length) { | 94 void AddStartupPageHandler::OnItemsAdded(int start, int length) { |
95 OnModelChanged(); | 95 OnModelChanged(); |
96 } | 96 } |
97 | 97 |
98 void AddStartupPageHandler::OnItemsRemoved(int start, int length) { | 98 void AddStartupPageHandler::OnItemsRemoved(int start, int length) { |
99 OnModelChanged(); | 99 OnModelChanged(); |
100 } | 100 } |
OLD | NEW |