Mac: Fix customization of background color (issue #1161).

This commit is contained in:
Marshall Greenblatt 2015-04-08 17:43:56 +02:00
parent 328cf2ed1f
commit e8e1f98ee0
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#include "content/public/browser/plugin_service_filter.h"
#include "content/public/browser/quota_permission_context.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/resource_dispatcher_host.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/storage_quota_params.h"
@ -989,6 +990,7 @@ void CefContentBrowserClient::OverrideWebkitPrefs(
BrowserToWebSettings(browser->settings(), *prefs);
prefs->base_background_color = GetBaseBackgroundColor(rvh);
rvh->GetView()->SetBackgroundColor(prefs->base_background_color);
prefs->asynchronous_spell_checking_enabled = true;
// Auto-correct does not work in combination with the unified text checker.