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

Side by Side Diff: components/autofill/content/renderer/password_form_conversion_utils.cc

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/content/renderer/password_form_conversion_utils.h" 5 #include "components/autofill/content/renderer/password_form_conversion_utils.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/i18n/case_conversion.h" 9 #include "base/i18n/case_conversion.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/content/renderer/form_autofill_util.h" 15 #include "components/autofill/content/renderer/form_autofill_util.h"
16 #include "components/autofill/core/common/password_form.h" 16 #include "components/autofill/core/common/password_form.h"
17 #include "components/autofill/core/common/password_form_field_prediction_map.h" 17 #include "components/autofill/core/common/password_form_field_prediction_map.h"
18 #include "google_apis/gaia/gaia_urls.h" 18 #include "google_apis/gaia/gaia_urls.h"
19 #include "third_party/WebKit/public/platform/WebString.h" 19 #include "third_party/WebKit/public/platform/WebString.h"
20 #include "third_party/WebKit/public/platform/WebVector.h" 20 #include "third_party/WebKit/public/platform/WebVector.h"
21 #include "third_party/WebKit/public/web/WebDocument.h" 21 #include "third_party/WebKit/public/web/WebDocument.h"
22 #include "third_party/WebKit/public/web/WebFormControlElement.h" 22 #include "third_party/WebKit/public/web/WebFormControlElement.h"
23 #include "third_party/WebKit/public/web/WebFrame.h" 23 #include "third_party/WebKit/public/web/WebFrame.h"
24 #include "third_party/WebKit/public/web/WebInputElement.h" 24 #include "third_party/WebKit/public/web/WebInputElement.h"
25 #include "third_party/re2/re2/re2.h" 25 #include "third_party/re2/src/re2/re2.h"
26 26
27 using blink::WebDocument; 27 using blink::WebDocument;
28 using blink::WebFormControlElement; 28 using blink::WebFormControlElement;
29 using blink::WebFormElement; 29 using blink::WebFormElement;
30 using blink::WebFrame; 30 using blink::WebFrame;
31 using blink::WebInputElement; 31 using blink::WebInputElement;
32 using blink::WebString; 32 using blink::WebString;
33 33
34 namespace autofill { 34 namespace autofill {
35 namespace { 35 namespace {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 635 }
636 636
637 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element, 637 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element,
638 const char* value_in_lowercase) { 638 const char* value_in_lowercase) {
639 return base::LowerCaseEqualsASCII( 639 return base::LowerCaseEqualsASCII(
640 base::StringPiece16(element.getAttribute("autocomplete")), 640 base::StringPiece16(element.getAttribute("autocomplete")),
641 value_in_lowercase); 641 value_in_lowercase);
642 } 642 }
643 643
644 } // namespace autofill 644 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_loader_handler.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698