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

Unified Diff: chrome/browser/autofill/autofill-inl.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill-inl.h
diff --git a/chrome/browser/autofill/autofill-inl.h b/chrome/browser/autofill/autofill-inl.h
deleted file mode 100644
index 420ccd236a9d4c2a7aba7a3632d9ecf3ee52ec2f..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/autofill-inl.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_INL_H_
-#define CHROME_BROWSER_AUTOFILL_AUTOFILL_INL_H_
-
-template<typename T>
-class FormGroupMatchesByCompareFunctor {
- public:
- explicit FormGroupMatchesByCompareFunctor(const T& form_group)
- : form_group_(form_group) {
- }
-
- bool operator()(const T* form_group) {
- return form_group->Compare(form_group_) == 0;
- }
-
- bool operator()(const T& form_group) {
- return form_group.Compare(form_group_) == 0;
- }
-
- private:
- const T& form_group_;
-};
-
-template<typename C, typename T>
-bool FindByContents(const C& container, const T& form_group) {
- return std::find_if(
- container.begin(),
- container.end(),
- FormGroupMatchesByCompareFunctor<T>(form_group)) != container.end();
-}
-
-#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_INL_H_
« no previous file with comments | « chrome/browser/autofill/autocomplete_history_manager_unittest.cc ('k') | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698