summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-28 18:34:56 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-28 18:34:56 +0000
commitcafe4ad25440a7752f5a4d230adf29b16a4766b0 (patch)
tree125f3d638cbaf3a3db61c91904c0eddae1e8ad34 /chrome/browser/automation/automation_provider.cc
parent96561cb87ad2679df630ddc0d1561949d78bbcff (diff)
downloadchromium_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.cc7
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);
}
}
}