diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 18:34:56 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 18:34:56 +0000 |
commit | cafe4ad25440a7752f5a4d230adf29b16a4766b0 (patch) | |
tree | 125f3d638cbaf3a3db61c91904c0eddae1e8ad34 /chrome/browser/automation/automation_provider.cc | |
parent | 96561cb87ad2679df630ddc0d1561949d78bbcff (diff) | |
download | chromium_src-cafe4ad25440a7752f5a4d230adf29b16a4766b0.zip chromium_src-cafe4ad25440a7752f5a4d230adf29b16a4766b0.tar.gz chromium_src-cafe4ad25440a7752f5a4d230adf29b16a4766b0.tar.bz2 |
Removal of Profile from content part 3.
BUG=76788
TEST=no change visible
Review URL: http://codereview.chromium.org/7522018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 745928b..1e25d61 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -712,9 +712,10 @@ void AutomationProvider::OnSetPageFontSize(int tab_handle, NavigationController* tab = tab_tracker_->GetResource(tab_handle); DCHECK(tab != NULL); if (tab && tab->tab_contents()) { - DCHECK(tab->tab_contents()->profile() != NULL); - tab->tab_contents()->profile()->GetPrefs()->SetInteger( - prefs::kWebKitDefaultFontSize, font_size); + DCHECK(tab->tab_contents()->browser_context() != NULL); + Profile* profile = + Profile::FromBrowserContext(tab->tab_contents()->browser_context()); + profile->GetPrefs()->SetInteger(prefs::kWebKitDefaultFontSize, font_size); } } } |