OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/options/general_page_view.h" | 5 #include "chrome/browser/views/options/general_page_view.h" |
6 | 6 |
7 #include "base/gfx/png_decoder.h" | 7 #include "base/gfx/png_decoder.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/thread.h" | 10 #include "base/thread.h" |
11 #include "chrome/app/theme/theme_resources.h" | 11 #include "grit/theme_resources.h" |
12 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/dom_ui/new_tab_ui.h" | 15 #include "chrome/browser/dom_ui/new_tab_ui.h" |
16 #include "chrome/browser/history/history.h" | 16 #include "chrome/browser/history/history.h" |
17 #include "chrome/browser/net/url_fixer_upper.h" | 17 #include "chrome/browser/net/url_fixer_upper.h" |
18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
19 #include "chrome/browser/session_startup_pref.h" | 19 #include "chrome/browser/session_startup_pref.h" |
20 #include "chrome/browser/search_engines/template_url.h" | 20 #include "chrome/browser/search_engines/template_url.h" |
21 #include "chrome/browser/search_engines/template_url_model.h" | 21 #include "chrome/browser/search_engines/template_url_model.h" |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 homepage_use_url_textfield_->SetReadOnly(true); | 1081 homepage_use_url_textfield_->SetReadOnly(true); |
1082 } | 1082 } |
1083 } | 1083 } |
1084 | 1084 |
1085 void GeneralPageView::SetDefaultSearchProvider() { | 1085 void GeneralPageView::SetDefaultSearchProvider() { |
1086 const int index = default_search_engine_combobox_->GetSelectedItem(); | 1086 const int index = default_search_engine_combobox_->GetSelectedItem(); |
1087 default_search_engines_model_->model()->SetDefaultSearchProvider( | 1087 default_search_engines_model_->model()->SetDefaultSearchProvider( |
1088 default_search_engines_model_->GetTemplateURLAt(index)); | 1088 default_search_engines_model_->GetTemplateURLAt(index)); |
1089 } | 1089 } |
1090 | 1090 |
OLD | NEW |