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

Unified Diff: components/html_viewer/blink_settings_impl.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 5 years 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
Index: components/html_viewer/blink_settings_impl.cc
diff --git a/components/html_viewer/blink_settings_impl.cc b/components/html_viewer/blink_settings_impl.cc
index 436aaa8db90383bc2cb63a7ec8a2c3050c33f671..357f095122ca9ee30303f632c15d311c46aedb5e 100644
--- a/components/html_viewer/blink_settings_impl.cc
+++ b/components/html_viewer/blink_settings_impl.cc
@@ -4,7 +4,10 @@
#include "components/html_viewer/blink_settings_impl.h"
+#include <stdint.h>
+
#include "base/command_line.h"
+#include "build/build_config.h"
#include "components/html_viewer/web_preferences.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/web/WebNetworkStateNotifier.h"
@@ -135,7 +138,7 @@ void ApplyFontsFromMap(const ScriptFontFamilyMap& map,
blink::WebSettings* settings) {
for (ScriptFontFamilyMap::const_iterator it = map.begin(); it != map.end();
++it) {
- int32 script = u_getPropertyValueEnum(UCHAR_SCRIPT, (it->first).c_str());
+ int32_t script = u_getPropertyValueEnum(UCHAR_SCRIPT, (it->first).c_str());
if (script >= 0 && script < USCRIPT_CODE_LIMIT) {
UScriptCode code = static_cast<UScriptCode>(script);
(*setter)(settings, it->second, GetScriptForWebSettings(code));
« no previous file with comments | « components/html_viewer/blink_settings_impl.h ('k') | components/html_viewer/blink_text_input_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698