OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 tab_contents()->GetRenderViewHost()->UpdateWebkitPreferences(prefs); | 431 tab_contents()->GetRenderViewHost()->UpdateWebkitPreferences(prefs); |
432 } | 432 } |
433 | 433 |
434 void PrefsTabHelper::UpdateRendererPreferences() { | 434 void PrefsTabHelper::UpdateRendererPreferences() { |
435 renderer_preferences_util::UpdateFromSystemSettings( | 435 renderer_preferences_util::UpdateFromSystemSettings( |
436 tab_contents()->GetMutableRendererPrefs(), GetProfile()); | 436 tab_contents()->GetMutableRendererPrefs(), GetProfile()); |
437 tab_contents()->GetRenderViewHost()->SyncRendererPrefs(); | 437 tab_contents()->GetRenderViewHost()->SyncRendererPrefs(); |
438 } | 438 } |
439 | 439 |
440 Profile* PrefsTabHelper::GetProfile() { | 440 Profile* PrefsTabHelper::GetProfile() { |
441 return Profile::FromBrowserContext(contents_->browser_context()); | 441 return Profile::FromBrowserContext(contents_->GetBrowserContext()); |
442 } | 442 } |
OLD | NEW |