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

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 660349: First cut at custom user style sheets. (Closed)
Patch Set: compile Created 10 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_host.cc
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 5c01d69207ece96b8c194481ec9bdc106cf1dd79..f4ee926218b19c49dcf8570d8cb1fd79415df76e 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -469,10 +469,10 @@ RendererPreferences ExtensionHost::GetRendererPrefs(Profile* profile) const {
}
WebPreferences ExtensionHost::GetWebkitPrefs() {
- PrefService* prefs = render_view_host()->process()->profile()->GetPrefs();
+ Profile* profile = render_view_host()->process()->profile();
const bool kIsDomUI = true;
WebPreferences webkit_prefs =
- RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, kIsDomUI);
+ RenderViewHostDelegateHelper::GetWebkitPrefs(profile, kIsDomUI);
if (extension_host_type_ == ViewType::EXTENSION_POPUP)
webkit_prefs.allow_scripts_to_close_windows = true;
return webkit_prefs;
« no previous file with comments | « no previous file | chrome/browser/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698