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

Unified Diff: chrome/browser/notifications/balloon_host.cc

Issue 10825150: Create a valid RendererPreferences for notification windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/balloon_host.cc
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc
index b3baa9b0ac7f1cc40a1d76d1fc47ec0dd15e8cb5..7b44ff7878d63047a2f8aa1e45f4e6aa6e8a0a92 100644
--- a/chrome/browser/notifications/balloon_host.cc
+++ b/chrome/browser/notifications/balloon_host.cc
@@ -138,6 +138,9 @@ void BalloonHost::Init() {
chrome::SetViewType(web_contents_.get(), chrome::VIEW_TYPE_NOTIFICATION);
web_contents_->SetDelegate(this);
Observe(web_contents_.get());
+ renderer_preferences_util::UpdateFromSystemSettings(
+ web_contents_->GetMutableRendererPrefs(), balloon_->profile());
stevenjb 2012/08/02 17:17:34 Is this modifying web_contents_->GetMutableRendere
kinaba 2012/08/03 01:39:23 Yes, this is how the function is defined in 2 or 3
+ web_contents_->GetRenderViewHost()->SyncRendererPrefs();
web_contents_->GetController().LoadURL(
balloon_->notification().content_url(), content::Referrer(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698