Commit ff61827c authored by James Cook's avatar James Cook Committed by Commit Bot

Remove unused function OSSettingsUI::RegisterProfilePrefs

The prefs are all browser-settings-specific and are registered in
SettingsUI::RegisterProfilePrefs().

Bug: none
Test: compiles
Change-Id: I6fc2610b834a66f5ae502963aac19c93e19de61b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574962
Auto-Submit: James Cook <jamescook@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652624}
parent 1827ab31
...@@ -43,13 +43,11 @@ ...@@ -43,13 +43,11 @@
#include "chrome/browser/ui/webui/settings/settings_ui.h" #include "chrome/browser/ui/webui/settings/settings_ui.h"
#include "chrome/browser/ui/webui/settings/site_settings_handler.h" #include "chrome/browser/ui/webui/settings/site_settings_handler.h"
#include "chrome/browser/web_applications/system_web_app_manager.h" #include "chrome/browser/web_applications/system_web_app_manager.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/webui_url_constants.h" #include "chrome/common/webui_url_constants.h"
#include "chrome/grit/browser_resources.h" #include "chrome/grit/browser_resources.h"
#include "chrome/grit/os_settings_resources.h" #include "chrome/grit/os_settings_resources.h"
#include "chrome/grit/os_settings_resources_map.h" #include "chrome/grit/os_settings_resources_map.h"
#include "components/password_manager/core/common/password_manager_features.h" #include "components/password_manager/core/common/password_manager_features.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/unified_consent/feature.h" #include "components/unified_consent/feature.h"
#include "content/public/browser/navigation_handle.h" #include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_ui_data_source.h" #include "content/public/browser/web_ui_data_source.h"
...@@ -63,16 +61,6 @@ ...@@ -63,16 +61,6 @@
namespace chromeos { namespace chromeos {
namespace settings { namespace settings {
// static
void OSSettingsUI::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(::prefs::kImportDialogAutofillFormData, true);
registry->RegisterBooleanPref(::prefs::kImportDialogBookmarks, true);
registry->RegisterBooleanPref(::prefs::kImportDialogHistory, true);
registry->RegisterBooleanPref(::prefs::kImportDialogSavedPasswords, true);
registry->RegisterBooleanPref(::prefs::kImportDialogSearchEngine, true);
}
OSSettingsUI::OSSettingsUI(content::WebUI* web_ui) OSSettingsUI::OSSettingsUI(content::WebUI* web_ui)
: content::WebUIController(web_ui), : content::WebUIController(web_ui),
WebContentsObserver(web_ui->GetWebContents()) { WebContentsObserver(web_ui->GetWebContents()) {
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_UI_H_ #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_UI_H_ #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_UI_H_
#include <memory>
#include "base/macros.h" #include "base/macros.h"
#include "base/time/time.h" #include "base/time/time.h"
#include "content/public/browser/web_contents_observer.h" #include "content/public/browser/web_contents_observer.h"
...@@ -14,10 +16,6 @@ namespace content { ...@@ -14,10 +16,6 @@ namespace content {
class WebUIMessageHandler; class WebUIMessageHandler;
} }
namespace user_prefs {
class PrefRegistrySyncable;
}
namespace chromeos { namespace chromeos {
namespace settings { namespace settings {
...@@ -25,8 +23,6 @@ namespace settings { ...@@ -25,8 +23,6 @@ namespace settings {
class OSSettingsUI : public content::WebUIController, class OSSettingsUI : public content::WebUIController,
public content::WebContentsObserver { public content::WebContentsObserver {
public: public:
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
explicit OSSettingsUI(content::WebUI* web_ui); explicit OSSettingsUI(content::WebUI* web_ui);
~OSSettingsUI() override; ~OSSettingsUI() override;
......
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