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

Unified Diff: ios/chrome/browser/application_context_impl.cc

Issue 1471213002: Add additional preferences registration to ApplicationContextImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | ios/chrome/browser/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/application_context_impl.cc
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index e81f9be94ed6bb12bb392f67e11aad3e84521124..85782bedee5fbcdf55f85b8b7d2516c56ed3306d 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -23,6 +23,7 @@
#include "components/network_time/network_time_tracker.h"
#include "components/translate/core/browser/translate_download_manager.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/history/history_service_factory.h"
#include "ios/chrome/browser/pref_names.h"
@@ -56,6 +57,8 @@ ApplicationContextImpl::~ApplicationContextImpl() {
// static
void ApplicationContextImpl::RegisterPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterStringPref(ios::prefs::kApplicationLocale, std::string());
+ registry->RegisterBooleanPref(prefs::kEulaAccepted, false);
registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled,
false);
registry->RegisterBooleanPref(prefs::kLastSessionExitedCleanly, true);
« no previous file with comments | « no previous file | ios/chrome/browser/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698