Commit 21a91cf8 authored by kinaba@chromium.org's avatar kinaba@chromium.org

Create a valid RendererPreferences for notification windows.

Essentially the same fix as http://crrev.com/44709.

BUG=140177
TEST=Select text in a notification and verify it to be highlighted.

Review URL: https://chromiumcodereview.appspot.com/10825150

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150236 0039d316-1c4b-4281-b951-d872f2087c98
parent 5ffb8e26
......@@ -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());
web_contents_->GetRenderViewHost()->SyncRendererPrefs();
web_contents_->GetController().LoadURL(
balloon_->notification().content_url(), content::Referrer(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment