OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/macros.h" |
5 #include "chrome/browser/autofill/autofill_uitest_util.h" | 6 #include "chrome/browser/autofill/autofill_uitest_util.h" |
6 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 7 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
7 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
9 #include "components/autofill/core/browser/personal_data_manager.h" | 10 #include "components/autofill/core/browser/personal_data_manager.h" |
10 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 11 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
11 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
12 | 13 |
13 namespace autofill { | 14 namespace autofill { |
14 | 15 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 SetTestProfiles(browser, &profiles); | 72 SetTestProfiles(browser, &profiles); |
72 } | 73 } |
73 | 74 |
74 void SetTestProfiles(Browser* browser, std::vector<AutofillProfile>* profiles) { | 75 void SetTestProfiles(Browser* browser, std::vector<AutofillProfile>* profiles) { |
75 PdmChangeWaiter observer(browser); | 76 PdmChangeWaiter observer(browser); |
76 GetPersonalDataManager(browser->profile())->SetProfiles(profiles); | 77 GetPersonalDataManager(browser->profile())->SetProfiles(profiles); |
77 observer.Wait(); | 78 observer.Wait(); |
78 } | 79 } |
79 | 80 |
80 } // namespace autofill | 81 } // namespace autofill |
OLD | NEW |