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

Side by Side Diff: chrome/browser/ui/search_engines/keyword_editor_controller.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/search_engines/keyword_editor_controller.h" 5 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
6 6
7 #include "base/prefs/pref_registry_simple.h"
8 #include "chrome/browser/favicon/favicon_service_factory.h" 7 #include "chrome/browser/favicon/favicon_service_factory.h"
9 #include "chrome/browser/search_engines/template_url_service_factory.h" 8 #include "chrome/browser/search_engines/template_url_service_factory.h"
10 #include "chrome/browser/ui/search_engines/template_url_table_model.h" 9 #include "chrome/browser/ui/search_engines/template_url_table_model.h"
10 #include "components/prefs/pref_registry_simple.h"
11 #include "components/search_engines/template_url.h" 11 #include "components/search_engines/template_url.h"
12 #include "components/search_engines/template_url_service.h" 12 #include "components/search_engines/template_url_service.h"
13 #include "content/public/browser/user_metrics.h" 13 #include "content/public/browser/user_metrics.h"
14 14
15 using base::UserMetricsAction; 15 using base::UserMetricsAction;
16 16
17 KeywordEditorController::KeywordEditorController(Profile* profile) 17 KeywordEditorController::KeywordEditorController(Profile* profile)
18 : url_model_(TemplateURLServiceFactory::GetForProfile(profile)) { 18 : url_model_(TemplateURLServiceFactory::GetForProfile(profile)) {
19 table_model_.reset(new TemplateURLTableModel( 19 table_model_.reset(new TemplateURLTableModel(
20 url_model_, FaviconServiceFactory::GetForProfile( 20 url_model_, FaviconServiceFactory::GetForProfile(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return table_model_->MakeDefaultTemplateURL(index); 87 return table_model_->MakeDefaultTemplateURL(index);
88 } 88 }
89 89
90 bool KeywordEditorController::loaded() const { 90 bool KeywordEditorController::loaded() const {
91 return url_model_->loaded(); 91 return url_model_->loaded();
92 } 92 }
93 93
94 TemplateURL* KeywordEditorController::GetTemplateURL(int index) { 94 TemplateURL* KeywordEditorController::GetTemplateURL(int index) {
95 return table_model_->GetTemplateURL(index); 95 return table_model_->GetTemplateURL(index);
96 } 96 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/local_ntp_browsertest.cc ('k') | chrome/browser/ui/search_engines/search_engine_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698