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

Unified Diff: chrome/browser/ui/webui/settings/people_handler.cc

Issue 1607833004: [MD settings] fix for opening sync user login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/people_handler.cc
diff --git a/chrome/browser/ui/webui/settings/people_handler.cc b/chrome/browser/ui/webui/settings/people_handler.cc
index ffb02c86bbe84b5c77c26634ee626ccb6f7097a1..b0a5a93500bf03c8e80d35dff3c4f10941287c4f 100644
--- a/chrome/browser/ui/webui/settings/people_handler.cc
+++ b/chrome/browser/ui/webui/settings/people_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/webui/settings/people_handler.h"
+#include <string>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -601,7 +603,7 @@ void PeopleHandler::HandleShowSetupUI(const base::ListValue* args) {
// If a setup wizard is present on this page or another, bring it to focus.
// Otherwise, display a new one on this page.
if (!FocusExistingWizardIfPresent())
- OpenSyncSetup(args);
+ OpenSyncSetup(nullptr);
}
#if defined(OS_CHROMEOS)
@@ -617,7 +619,7 @@ void PeopleHandler::HandleDoSignOutOnAuthError(const base::ListValue* args) {
void PeopleHandler::HandleStartSignin(const base::ListValue* args) {
// Should only be called if the user is not already signed in.
DCHECK(!SigninManagerFactory::GetForProfile(profile_)->IsAuthenticated());
- OpenSyncSetup(args);
+ OpenSyncSetup(nullptr);
}
void PeopleHandler::HandleStopSyncing(const base::ListValue* args) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698