Commit 66400495 authored by chrishtr@chromium.org's avatar chrishtr@chromium.org

Add a tracing line to UpdateWebPreferences. This is a potentially very expensive operation.

BUG=390799

Review URL: https://codereview.chromium.org/375623002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281785 0039d316-1c4b-4281-b951-d872f2087c98
parent 2b0b0329
......@@ -4,6 +4,7 @@
#include "content/public/renderer/web_preferences.h"
#include "base/debug/trace_event.h"
#include "base/strings/utf_string_conversions.h"
#include "content/renderer/net_info_helper.h"
#include "third_party/WebKit/public/platform/WebConnectionType.h"
......@@ -114,6 +115,7 @@ void ApplyFontsFromMap(const webkit_glue::ScriptFontFamilyMap& map,
} // namespace
void ApplyWebPreferences(const WebPreferences& prefs, WebView* web_view) {
TRACE_EVENT0("renderer", "ApplyWebPreferences");
WebSettings* settings = web_view->settings();
ApplyFontsFromMap(prefs.standard_font_family_map,
setStandardFontFamilyWrapper, settings);
......
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