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

Unified Diff: webkit/support/test_webkit_platform_support.cc

Issue 11141021: Add string localization test mode Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.cc
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
index 6fd34f32dd14dd9a66de29fd0c211b43c49bd9e4..74bc2376e9499bc496fa9b12b63b2dddad4fe4c9 100644
--- a/webkit/support/test_webkit_platform_support.cc
+++ b/webkit/support/test_webkit_platform_support.cc
@@ -9,6 +9,7 @@
#include "base/path_service.h"
#include "base/scoped_temp_dir.h"
#include "base/string_util.h"
+#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "media/base/media.h"
#include "net/cookies/cookie_monster.h"
@@ -266,6 +267,8 @@ WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) {
WebKit::WebString TestWebKitPlatformSupport::queryLocalizedString(
WebKit::WebLocalizedString::Name name) {
+ if (WebKit::WebRuntimeFeatures::isStringLocalizationTestModeEnabled())
+ return base::IntToString16(name);
// Returns messages same as WebKit's in DRT.
// We use different strings for form validation messages.
switch (name) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698