Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index 48cd3b11fba65f1397f2227486ef359c848362f3..81062f47d2ddcf5e4488885bde651b3996e092f7 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -42,6 +42,7 @@ |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/render_messages.h" |
+#include "components/user_prefs/user_prefs.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/host_zoom_map.h" |
#include "content/public/browser/render_process_host.h" |
@@ -88,6 +89,8 @@ OffTheRecordProfileImpl::OffTheRecordProfileImpl(Profile* real_profile) |
start_time_(Time::Now()), |
zoom_callback_(base::Bind(&OffTheRecordProfileImpl::OnZoomLevelChanged, |
base::Unretained(this))) { |
+ // Register on BrowserContext. |
+ components::UserPrefs::Set(this, prefs_); |
} |
void OffTheRecordProfileImpl::Init() { |