Index: chrome/browser/autofill/android/personal_data_manager_android.cc |
diff --git a/chrome/browser/autofill/android/personal_data_manager_android.cc b/chrome/browser/autofill/android/personal_data_manager_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b8954e78f14dbdee26d8c07d15a182493b3c6f63 |
--- /dev/null |
+++ b/chrome/browser/autofill/android/personal_data_manager_android.cc |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2013 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. |
+ |
+// Populates default autofill profile from user's own Android contact. |
+ |
+#include "chrome/browser/autofill/android/auxiliary_profile_loader_android.h" |
+#include "chrome/browser/autofill/android/auxiliary_profiles_android.h" |
+#include "chrome/browser/autofill/personal_data_manager.h" |
+ |
+void PersonalDataManager::LoadAuxiliaryProfiles() { |
+ auxiliary_profiles_.clear(); |
+ autofill::AuxiliaryProfileLoaderAndroid profileLoader; |
Ilya Sherman
2013/03/09 01:42:58
nit: hacker_case (please try to fix the variable n
apiccion
2013/03/09 03:43:17
Done.
|
+ profileLoader.Init( |
+ base::android::AttachCurrentThread(), |
+ base::android::GetApplicationContext()); |
+ autofill::AuxiliaryProfilesAndroid impl(profileLoader); |
+ auxiliary_profiles_.push_back(impl.LoadContactsProfile().release()); |
+} |