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

Side by Side Diff: chrome/browser/sync/test/integration/autofill_helper.h

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Updates the autofill profile with guid |guid| in sync profile |profile| 80 // Updates the autofill profile with guid |guid| in sync profile |profile|
81 // to |type| and |value|. 81 // to |type| and |value|.
82 void UpdateProfile(int profile, 82 void UpdateProfile(int profile,
83 const std::string& guid, 83 const std::string& guid,
84 const autofill::AutofillType& type, 84 const autofill::AutofillType& type,
85 const base::string16& value); 85 const base::string16& value);
86 86
87 // Gets all the Autofill profiles in the PersonalDataManager of sync profile 87 // Gets all the Autofill profiles in the PersonalDataManager of sync profile
88 // |profile|. 88 // |profile|.
89 const std::vector<autofill::AutofillProfile*>& GetAllAutoFillProfiles( 89 std::vector<autofill::AutofillProfile*> GetAllAutoFillProfiles(int profile)
90 int profile) WARN_UNUSED_RESULT; 90 WARN_UNUSED_RESULT;
91 91
92 // Returns the number of autofill profiles contained by sync profile 92 // Returns the number of autofill profiles contained by sync profile
93 // |profile|. 93 // |profile|.
94 int GetProfileCount(int profile); 94 int GetProfileCount(int profile);
95 95
96 // Returns the number of autofill keys contained by sync profile |profile|. 96 // Returns the number of autofill keys contained by sync profile |profile|.
97 int GetKeyCount(int profile); 97 int GetKeyCount(int profile);
98 98
99 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles 99 // Compares the Autofill profiles in the PersonalDataManagers of sync profiles
100 // |profile_a| and |profile_b|. Returns true if they match. 100 // |profile_a| and |profile_b|. Returns true if they match.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // autofill::PersonalDataManager implementation. 141 // autofill::PersonalDataManager implementation.
142 void OnPersonalDataChanged() override; 142 void OnPersonalDataChanged() override;
143 143
144 private: 144 private:
145 const int profile_a_; 145 const int profile_a_;
146 const int profile_b_; 146 const int profile_b_;
147 }; 147 };
148 148
149 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_ 149 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AUTOFILL_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698