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

Unified Diff: extensions/browser/renderer_startup_helper.cc

Issue 747923004: webui: minimize webui flicker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: creis@ + davidben@ review Created 6 years, 1 month 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 | « content/browser/webui/shared_resources_data_source.cc ('k') | ui/base/webui/web_ui_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/renderer_startup_helper.cc
diff --git a/extensions/browser/renderer_startup_helper.cc b/extensions/browser/renderer_startup_helper.cc
index 9e1b6042fffd46dc159552a6f199a7cddcd8b034..5cdd8b125aa0a1f803ca3e47f26203ee04059dba 100644
--- a/extensions/browser/renderer_startup_helper.cc
+++ b/extensions/browser/renderer_startup_helper.cc
@@ -43,13 +43,9 @@ void RendererStartupHelper::Observe(
break;
// Platform apps need to know the system font.
- scoped_ptr<base::DictionaryValue> fonts(new base::DictionaryValue);
- webui::SetFontAndTextDirection(fonts.get());
- std::string font_family, font_size;
- fonts->GetString("fontfamily", &font_family);
- fonts->GetString("fontsize", &font_size);
- process->Send(new ExtensionMsg_SetSystemFont(
- font_family, font_size));
+ // TODO(dbeam): this is not the system font in all cases.
+ process->Send(new ExtensionMsg_SetSystemFont(webui::GetFontFamily(),
+ webui::GetFontSize()));
// Valid extension function names, used to setup bindings in renderer.
std::vector<std::string> function_names;
« no previous file with comments | « content/browser/webui/shared_resources_data_source.cc ('k') | ui/base/webui/web_ui_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698