| 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/keyword_editor_view.h" | 5 #include "chrome/browser/views/keyword_editor_view.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/gfx/png_decoder.h" | 9 #include "base/gfx/png_decoder.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "chrome/app/locales/locale_settings.h" | 11 #include "chrome/app/locales/locale_settings.h" |
| 12 #include "chrome/app/theme/theme_resources.h" | 12 #include "chrome/app/theme/theme_resources.h" |
| 13 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
| 16 #include "chrome/browser/template_url_model.h" | 16 #include "chrome/browser/search_engines/template_url_model.h" |
| 17 #include "chrome/browser/user_metrics.h" | 17 #include "chrome/browser/user_metrics.h" |
| 18 #include "chrome/browser/views/edit_keyword_controller.h" | 18 #include "chrome/browser/views/edit_keyword_controller.h" |
| 19 #include "chrome/browser/views/standard_layout.h" | 19 #include "chrome/browser/views/standard_layout.h" |
| 20 #include "chrome/common/l10n_util.h" | 20 #include "chrome/common/l10n_util.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "chrome/common/pref_service.h" | 22 #include "chrome/common/pref_service.h" |
| 23 #include "chrome/common/resource_bundle.h" | 23 #include "chrome/common/resource_bundle.h" |
| 24 #include "chrome/common/stl_util-inl.h" | 24 #include "chrome/common/stl_util-inl.h" |
| 25 #include "chrome/views/background.h" | 25 #include "chrome/views/background.h" |
| 26 #include "chrome/views/checkbox.h" | 26 #include "chrome/views/checkbox.h" |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 } | 622 } |
| 623 const int new_index = table_model_->IndexOfTemplateURL(keyword); | 623 const int new_index = table_model_->IndexOfTemplateURL(keyword); |
| 624 table_model_->NotifyChanged(new_index); | 624 table_model_->NotifyChanged(new_index); |
| 625 | 625 |
| 626 // Make sure the new default is in the main group. | 626 // Make sure the new default is in the main group. |
| 627 table_model_->MoveToMainGroup(index); | 627 table_model_->MoveToMainGroup(index); |
| 628 | 628 |
| 629 // And select it. | 629 // And select it. |
| 630 table_view_->Select(table_model_->IndexOfTemplateURL(keyword)); | 630 table_view_->Select(table_model_->IndexOfTemplateURL(keyword)); |
| 631 } | 631 } |
| OLD | NEW |