Commit 8014ec06 authored by sdefresne's avatar sdefresne Committed by Commit bot

Add additional preferences registration to ApplicationContextImpl.

BUG=540702

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

Cr-Commit-Position: refs/heads/master@{#361331}
parent f4588407
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "components/network_time/network_time_tracker.h" #include "components/network_time/network_time_tracker.h"
#include "components/translate/core/browser/translate_download_manager.h" #include "components/translate/core/browser/translate_download_manager.h"
#include "components/variations/service/variations_service.h" #include "components/variations/service/variations_service.h"
#include "components/web_resource/web_resource_pref_names.h"
#include "ios/chrome/browser/chrome_paths.h" #include "ios/chrome/browser/chrome_paths.h"
#include "ios/chrome/browser/history/history_service_factory.h" #include "ios/chrome/browser/history/history_service_factory.h"
#include "ios/chrome/browser/pref_names.h" #include "ios/chrome/browser/pref_names.h"
...@@ -56,6 +57,8 @@ ApplicationContextImpl::~ApplicationContextImpl() { ...@@ -56,6 +57,8 @@ ApplicationContextImpl::~ApplicationContextImpl() {
// static // static
void ApplicationContextImpl::RegisterPrefs(PrefRegistrySimple* registry) { void ApplicationContextImpl::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterStringPref(ios::prefs::kApplicationLocale, std::string());
registry->RegisterBooleanPref(prefs::kEulaAccepted, false);
registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled, registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled,
false); false);
registry->RegisterBooleanPref(prefs::kLastSessionExitedCleanly, true); registry->RegisterBooleanPref(prefs::kLastSessionExitedCleanly, true);
......
...@@ -14,6 +14,7 @@ namespace prefs { ...@@ -14,6 +14,7 @@ namespace prefs {
const char kAcceptLanguages[] = "intl.accept_languages"; const char kAcceptLanguages[] = "intl.accept_languages";
const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
const char kApplicationLocale[] = "intl.app_locale";
const char kBrowserStateInfoCache[] = "profile.info_cache"; const char kBrowserStateInfoCache[] = "profile.info_cache";
const char kBrowserStateLastUsed[] = "profile.last_used"; const char kBrowserStateLastUsed[] = "profile.last_used";
const char kBrowserStatesLastActive[] = "profile.last_active_profiles"; const char kBrowserStatesLastActive[] = "profile.last_active_profiles";
......
...@@ -12,6 +12,7 @@ namespace prefs { ...@@ -12,6 +12,7 @@ namespace prefs {
// Non-shared preferences should be in the prefs:: namespace (no ios::). // Non-shared preferences should be in the prefs:: namespace (no ios::).
extern const char kAcceptLanguages[]; extern const char kAcceptLanguages[];
extern const char kAllowDeletingBrowserHistory[]; extern const char kAllowDeletingBrowserHistory[];
extern const char kApplicationLocale[];
extern const char kBrowserStateInfoCache[]; extern const char kBrowserStateInfoCache[];
extern const char kBrowserStateLastUsed[]; extern const char kBrowserStateLastUsed[];
extern const char kBrowserStatesLastActive[]; extern const char kBrowserStatesLastActive[];
......
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