| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 5 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/prefs/overlay_user_pref_store.h" |
| 9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 10 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 11 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/prefs/overlay_user_pref_store.h" | |
| 13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/renderer_preferences_util.h" | 15 #include "chrome/browser/renderer_preferences_util.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
| 19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
| 20 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
| 21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 | 567 |
| 568 void PrefsTabHelper::UpdateRendererPreferences() { | 568 void PrefsTabHelper::UpdateRendererPreferences() { |
| 569 renderer_preferences_util::UpdateFromSystemSettings( | 569 renderer_preferences_util::UpdateFromSystemSettings( |
| 570 web_contents_->GetMutableRendererPrefs(), GetProfile()); | 570 web_contents_->GetMutableRendererPrefs(), GetProfile()); |
| 571 web_contents_->GetRenderViewHost()->SyncRendererPrefs(); | 571 web_contents_->GetRenderViewHost()->SyncRendererPrefs(); |
| 572 } | 572 } |
| 573 | 573 |
| 574 Profile* PrefsTabHelper::GetProfile() { | 574 Profile* PrefsTabHelper::GetProfile() { |
| 575 return Profile::FromBrowserContext(web_contents_->GetBrowserContext()); | 575 return Profile::FromBrowserContext(web_contents_->GetBrowserContext()); |
| 576 } | 576 } |
| OLD | NEW |