Commit d0e3a463 authored by dgrogan's avatar dgrogan Committed by Commit bot

Remove two unused prefs keys.

kKeywordEditorWindowPlacement, kPreferencesWindowPlacement haven't been
used in a few years.

Review URL: https://codereview.chromium.org/501463003

Cr-Commit-Position: refs/heads/master@{#291760}
parent 3a29ee29
...@@ -251,7 +251,6 @@ void RegisterLocalState(PrefRegistrySimple* registry) { ...@@ -251,7 +251,6 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
GpuModeManager::RegisterPrefs(registry); GpuModeManager::RegisterPrefs(registry);
IntranetRedirectDetector::RegisterPrefs(registry); IntranetRedirectDetector::RegisterPrefs(registry);
IOThread::RegisterPrefs(registry); IOThread::RegisterPrefs(registry);
KeywordEditorController::RegisterPrefs(registry);
network_time::NetworkTimeTracker::RegisterPrefs(registry); network_time::NetworkTimeTracker::RegisterPrefs(registry);
PrefProxyConfigTrackerImpl::RegisterPrefs(registry); PrefProxyConfigTrackerImpl::RegisterPrefs(registry);
ProfileInfoCache::RegisterPrefs(registry); ProfileInfoCache::RegisterPrefs(registry);
......
...@@ -125,9 +125,6 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { ...@@ -125,9 +125,6 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterDictionaryPref( registry->RegisterDictionaryPref(
prefs::kBrowserWindowPlacementPopup, prefs::kBrowserWindowPlacementPopup,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
registry->RegisterDictionaryPref(
prefs::kPreferencesWindowPlacement,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
registry->RegisterBooleanPref( registry->RegisterBooleanPref(
prefs::kImportBookmarks, prefs::kImportBookmarks,
true, true,
......
...@@ -25,13 +25,6 @@ KeywordEditorController::KeywordEditorController(Profile* profile) ...@@ -25,13 +25,6 @@ KeywordEditorController::KeywordEditorController(Profile* profile)
KeywordEditorController::~KeywordEditorController() { KeywordEditorController::~KeywordEditorController() {
} }
// static
// TODO(rsesek): Other platforms besides Mac should remember window
// placement. http://crbug.com/22269
void KeywordEditorController::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterDictionaryPref(prefs::kKeywordEditorWindowPlacement);
}
int KeywordEditorController::AddTemplateURL(const base::string16& title, int KeywordEditorController::AddTemplateURL(const base::string16& title,
const base::string16& keyword, const base::string16& keyword,
const std::string& url) { const std::string& url) {
......
...@@ -22,8 +22,6 @@ class KeywordEditorController { ...@@ -22,8 +22,6 @@ class KeywordEditorController {
explicit KeywordEditorController(Profile* profile); explicit KeywordEditorController(Profile* profile);
~KeywordEditorController(); ~KeywordEditorController();
static void RegisterPrefs(PrefRegistrySimple* registry);
// Invoked when the user succesfully fills out the add keyword dialog. // Invoked when the user succesfully fills out the add keyword dialog.
// Propagates the change to the TemplateURLService and updates the table // Propagates the change to the TemplateURLService and updates the table
// model. Returns the index of the added URL. // model. Returns the index of the added URL.
......
...@@ -1427,14 +1427,6 @@ const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup"; ...@@ -1427,14 +1427,6 @@ const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
// manager window to restore on startup. // manager window to restore on startup.
const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
// A collection of position, size, and other data relating to the keyword
// editor window to restore on startup.
const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
// A collection of position, size, and other data relating to the preferences
// window to restore on startup.
const char kPreferencesWindowPlacement[] = "preferences.window_placement";
// An integer specifying the total number of bytes to be used by the // An integer specifying the total number of bytes to be used by the
// renderer's in-memory cache of objects. // renderer's in-memory cache of objects.
const char kMemoryCacheSize[] = "renderer.memory_cache.size"; const char kMemoryCacheSize[] = "renderer.memory_cache.size";
......
...@@ -470,8 +470,6 @@ extern const char kBrowserSuppressDefaultBrowserPrompt[]; ...@@ -470,8 +470,6 @@ extern const char kBrowserSuppressDefaultBrowserPrompt[];
extern const char kBrowserWindowPlacement[]; extern const char kBrowserWindowPlacement[];
extern const char kBrowserWindowPlacementPopup[]; extern const char kBrowserWindowPlacementPopup[];
extern const char kTaskManagerWindowPlacement[]; extern const char kTaskManagerWindowPlacement[];
extern const char kKeywordEditorWindowPlacement[];
extern const char kPreferencesWindowPlacement[];
extern const char kMemoryCacheSize[]; extern const char kMemoryCacheSize[];
extern const char kDownloadDefaultDirectory[]; extern const char kDownloadDefaultDirectory[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment