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

Side by Side Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 8949061: Move a bunch of methods from TabContents into the WebContents interface. This change either moves... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698