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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/search_engines/keyword_editor_controller.h" 5 #include "chrome/browser/search_engines/keyword_editor_controller.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/metrics/user_metrics.h" 8 #include "chrome/browser/metrics/user_metrics.h"
9 #include "chrome/browser/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/browser/search_engines/template_url.h" 11 #include "chrome/browser/search_engines/template_url.h"
12 #include "chrome/browser/search_engines/template_url_model.h" 12 #include "chrome/browser/search_engines/template_url_model.h"
13 #include "chrome/browser/search_engines/template_url_table_model.h" 13 #include "chrome/browser/search_engines/template_url_table_model.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 15
16 KeywordEditorController::KeywordEditorController(Profile* profile) 16 KeywordEditorController::KeywordEditorController(Profile* profile)
17 : profile_(profile) { 17 : profile_(profile) {
18 table_model_.reset(new TemplateURLTableModel(profile->GetTemplateURLModel())); 18 table_model_.reset(new TemplateURLTableModel(profile->GetTemplateURLModel()));
19 } 19 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return url_model()->loaded(); 102 return url_model()->loaded();
103 } 103 }
104 104
105 const TemplateURL* KeywordEditorController::GetTemplateURL(int index) const { 105 const TemplateURL* KeywordEditorController::GetTemplateURL(int index) const {
106 return &table_model_->GetTemplateURL(index); 106 return &table_model_->GetTemplateURL(index);
107 } 107 }
108 108
109 TemplateURLModel* KeywordEditorController::url_model() const { 109 TemplateURLModel* KeywordEditorController::url_model() const {
110 return table_model_->template_url_model(); 110 return table_model_->template_url_model();
111 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698