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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
index fb995454b5970210ae57ffa1e8fcb9e2820c34f1..45d41c86fbb34078eef4c50d0d42cb0fd7fcfda0 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
@@ -275,6 +275,7 @@ const char kURLRegisterComplete[] =
const char kURLGaiaToken[] =
"https://accounts.google.com/o/oauth2/token";
+const char kSampleGaiaId[] = "12345";
const char kSampleUser[] = "user@host.com";
class TestMessageLoopCondition {
@@ -364,7 +365,7 @@ class LocalDiscoveryUITest : public WebUIBrowserTest {
SigninManagerFactory::GetForProfile(browser()->profile());
DCHECK(signin_manager);
- signin_manager->SetAuthenticatedUsername(kSampleUser);
+ signin_manager->SetAuthenticatedAccountInfo(kSampleGaiaId, kSampleUser);
fake_fetcher_factory().SetFakeResponse(
GURL(kURLInfo),

Powered by Google App Engine
This is Rietveld 408576698