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

Unified Diff: chrome/browser/search_engines/keyword_editor_controller.cc

Issue 207027: [Mac] Polish the search engine manager (Closed)
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search_engines/keyword_editor_controller.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/keyword_editor_controller.cc
diff --git a/chrome/browser/search_engines/keyword_editor_controller.cc b/chrome/browser/search_engines/keyword_editor_controller.cc
index 022af5601f6e79a41ad2b18e0a4c13f7970ce6b8..cbba59f4f8930ab6e488922be51976594cd1531d 100644
--- a/chrome/browser/search_engines/keyword_editor_controller.cc
+++ b/chrome/browser/search_engines/keyword_editor_controller.cc
@@ -9,6 +9,8 @@
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/search_engines/template_url_table_model.h"
+#include "chrome/common/pref_names.h"
+#include "chrome/common/pref_service.h"
KeywordEditorController::KeywordEditorController(Profile* profile)
: profile_(profile) {
@@ -18,6 +20,12 @@ KeywordEditorController::KeywordEditorController(Profile* profile)
KeywordEditorController::~KeywordEditorController() {
}
+// static
+// TODO(22269): Other platforms besides Mac should remember window placement.
pink (ping after 24hrs) 2009/09/18 19:12:50 usually the format for this is: // TODO(yourNameHe
+void KeywordEditorController::RegisterPrefs(PrefService* prefs) {
+ prefs->RegisterDictionaryPref(prefs::kKeywordEditorWindowPlacement);
+}
+
int KeywordEditorController::AddTemplateURL(const std::wstring& title,
const std::wstring& keyword,
const std::wstring& url) {
« no previous file with comments | « chrome/browser/search_engines/keyword_editor_controller.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698