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

Side by Side Diff: components/autofill/core/common/autofill_regexes.cc

Issue 1081803003: Limit form-less Autofilling to pages that look like checkout pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: suppress msvc warning Created 5 years, 8 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 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/core/browser/autofill_regexes.h" 5 #include "components/autofill/core/common/autofill_regexes.h"
6 6
7 #include "base/containers/scoped_ptr_hash_map.h" 7 #include "base/containers/scoped_ptr_hash_map.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "third_party/icu/source/i18n/unicode/regex.h" 12 #include "third_party/icu/source/i18n/unicode/regex.h"
13 13
14 namespace { 14 namespace {
15 15
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 icu::UnicodeString icu_input(input.data(), input.length()); 71 icu::UnicodeString icu_input(input.data(), input.length());
72 matcher->reset(icu_input); 72 matcher->reset(icu_input);
73 73
74 UErrorCode status = U_ZERO_ERROR; 74 UErrorCode status = U_ZERO_ERROR;
75 UBool match = matcher->find(0, status); 75 UBool match = matcher->find(0, status);
76 DCHECK(U_SUCCESS(status)); 76 DCHECK(U_SUCCESS(status));
77 return match == TRUE; 77 return match == TRUE;
78 } 78 }
79 79
80 } // namespace autofill 80 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/common/autofill_regexes.h ('k') | components/autofill/core/common/autofill_regexes_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698