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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 2737263002: Fixed "characters" typo in message validation when input length is 1 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 case WebLocalizedString::ValidationRangeUnderflowDateTime: 285 case WebLocalizedString::ValidationRangeUnderflowDateTime:
286 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW_DATETIME; 286 return IDS_FORM_VALIDATION_RANGE_UNDERFLOW_DATETIME;
287 case WebLocalizedString::ValidationStepMismatch: 287 case WebLocalizedString::ValidationStepMismatch:
288 return IDS_FORM_VALIDATION_STEP_MISMATCH; 288 return IDS_FORM_VALIDATION_STEP_MISMATCH;
289 case WebLocalizedString::ValidationStepMismatchCloseToLimit: 289 case WebLocalizedString::ValidationStepMismatchCloseToLimit:
290 return IDS_FORM_VALIDATION_STEP_MISMATCH_CLOSE_TO_LIMIT; 290 return IDS_FORM_VALIDATION_STEP_MISMATCH_CLOSE_TO_LIMIT;
291 case WebLocalizedString::ValidationTooLong: 291 case WebLocalizedString::ValidationTooLong:
292 return IDS_FORM_VALIDATION_TOO_LONG; 292 return IDS_FORM_VALIDATION_TOO_LONG;
293 case WebLocalizedString::ValidationTooShort: 293 case WebLocalizedString::ValidationTooShort:
294 return IDS_FORM_VALIDATION_TOO_SHORT; 294 return IDS_FORM_VALIDATION_TOO_SHORT;
295 case WebLocalizedString::ValidationTooShortPlural:
296 return IDS_FORM_VALIDATION_TOO_SHORT_PLURAL;
295 case WebLocalizedString::ValidationTypeMismatch: 297 case WebLocalizedString::ValidationTypeMismatch:
296 return IDS_FORM_VALIDATION_TYPE_MISMATCH; 298 return IDS_FORM_VALIDATION_TYPE_MISMATCH;
297 case WebLocalizedString::ValidationTypeMismatchForEmail: 299 case WebLocalizedString::ValidationTypeMismatchForEmail:
298 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL; 300 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL;
299 case WebLocalizedString::ValidationTypeMismatchForEmailEmpty: 301 case WebLocalizedString::ValidationTypeMismatchForEmailEmpty:
300 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY; 302 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY;
301 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyDomain: 303 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyDomain:
302 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_DOMAIN; 304 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_DOMAIN;
303 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyLocal: 305 case WebLocalizedString::ValidationTypeMismatchForEmailEmptyLocal:
304 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_LOCAL; 306 return IDS_FORM_VALIDATION_TYPE_MISMATCH_EMAIL_EMPTY_LOCAL;
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin( 868 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin(
867 const blink::WebFeaturePolicy& policy, 869 const blink::WebFeaturePolicy& policy,
868 const blink::WebSecurityOrigin& new_origin) { 870 const blink::WebSecurityOrigin& new_origin) {
869 std::unique_ptr<FeaturePolicy> new_policy = 871 std::unique_ptr<FeaturePolicy> new_policy =
870 FeaturePolicy::CreateFromPolicyWithOrigin( 872 FeaturePolicy::CreateFromPolicyWithOrigin(
871 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); 873 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin));
872 return new_policy.release(); 874 return new_policy.release();
873 } 875 }
874 876
875 } // namespace content 877 } // namespace content
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | third_party/WebKit/LayoutTests/fast/forms/validationMessage-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698