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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 13
14 class PrefServiceSimple; 14 class PrefRegistrySimple;
15 class Profile; 15 class Profile;
16 class TemplateURL; 16 class TemplateURL;
17 class TemplateURLService; 17 class TemplateURLService;
18 class TemplateURLTableModel; 18 class TemplateURLTableModel;
19 19
20 class KeywordEditorController { 20 class KeywordEditorController {
21 public: 21 public:
22 explicit KeywordEditorController(Profile* profile); 22 explicit KeywordEditorController(Profile* profile);
23 ~KeywordEditorController(); 23 ~KeywordEditorController();
24 24
25 static void RegisterPrefs(PrefServiceSimple* prefs); 25 static void RegisterPrefs(PrefRegistrySimple* registry);
26 26
27 // Invoked when the user succesfully fills out the add keyword dialog. 27 // Invoked when the user succesfully fills out the add keyword dialog.
28 // Propagates the change to the TemplateURLService and updates the table 28 // Propagates the change to the TemplateURLService and updates the table
29 // model. Returns the index of the added URL. 29 // model. Returns the index of the added URL.
30 int AddTemplateURL(const string16& title, 30 int AddTemplateURL(const string16& title,
31 const string16& keyword, 31 const string16& keyword,
32 const std::string& url); 32 const std::string& url);
33 33
34 // Invoked when the user modifies a TemplateURL. Updates the 34 // Invoked when the user modifies a TemplateURL. Updates the
35 // TemplateURLService and table model appropriately. 35 // TemplateURLService and table model appropriately.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // The profile. 70 // The profile.
71 Profile* profile_; 71 Profile* profile_;
72 72
73 // Model for the TableView. 73 // Model for the TableView.
74 scoped_ptr<TemplateURLTableModel> table_model_; 74 scoped_ptr<TemplateURLTableModel> table_model_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(KeywordEditorController); 76 DISALLOW_COPY_AND_ASSIGN(KeywordEditorController);
77 }; 77 };
78 78
79 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 79 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698