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

Side by Side Diff: components/autofill/browser/android/personal_data_manager_android.cc

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed autogenerated nits from trybot 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Populates default autofill profile from user's own Android contact.
6
7 #include "components/autofill/browser/android/auxiliary_profile_loader_android.h "
8 #include "components/autofill/browser/android/auxiliary_profiles_android.h"
9 #include "components/autofill/browser/personal_data_manager.h"
10
11 void PersonalDataManager::LoadAuxiliaryProfiles() {
12 auxiliary_profiles_.clear();
13 autofill::AuxiliaryProfileLoaderAndroid profile_loader;
14 profile_loader.Init(
15 base::android::AttachCurrentThread(),
16 base::android::GetApplicationContext());
17 if (profile_loader.GetHasPermissions()) {
18 autofill::AuxiliaryProfilesAndroid impl(profile_loader);
19 auxiliary_profiles_.push_back(impl.LoadContactsProfile().release());
20 }
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698