summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
diff options
context:
space:
mode:
authorrogerta <rogerta@chromium.org>2015-04-16 21:16:37 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-17 04:16:59 +0000
commita1e15d29e401465bacd0681f256af567e7b8242f (patch)
tree5225a6498d80fa5bdaf6639cd51f9fe1ac3eef32 /chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
parent950576043d18caee3fc8bb28dfc432c3d6adcbda (diff)
downloadchromium_src-a1e15d29e401465bacd0681f256af567e7b8242f.zip
chromium_src-a1e15d29e401465bacd0681f256af567e7b8242f.tar.gz
chromium_src-a1e15d29e401465bacd0681f256af567e7b8242f.tar.bz2
Replace SetAuthenticatedUsername with SetAuthenticatedAccountId.
Depends on https://codereview.chromium.org/964553002/ BUG=341408 Review URL: https://codereview.chromium.org/964563002 Cr-Commit-Position: refs/heads/master@{#325594}
Diffstat (limited to 'chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc')
-rw-r--r--chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
index aa5e119..e1e566e 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
@@ -14,6 +14,7 @@
#include "base/time/time.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/signin/account_tracker_service_factory.h"
#include "chrome/browser/ui/autofill/account_chooser_model.h"
#include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
#include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h"
@@ -43,6 +44,7 @@
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
+#include "components/signin/core/browser/account_tracker_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/navigation_details.h"
@@ -104,9 +106,12 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl {
use_validation_(false),
sign_in_user_index_(0U),
weak_ptr_factory_(this) {
+ Profile* profile =
+ Profile::FromBrowserContext(contents->GetBrowserContext());
test_manager_.Init(
NULL,
- Profile::FromBrowserContext(contents->GetBrowserContext())->GetPrefs(),
+ profile->GetPrefs(),
+ AccountTrackerServiceFactory::GetForProfile(profile),
false);
}