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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler.cc

Issue 12601017: Remove forceLogin flag from sync setup. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync Created 7 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
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc
index 85d8447a9a0a234aba0bfe0bea4a885a7fb6bd32..52132e170eb114f76b167bce471baa9c0d1963e6 100644
--- a/chrome/browser/ui/webui/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler.cc
@@ -578,10 +578,6 @@ void SyncSetupHandler::RegisterMessages() {
base::Bind(&SyncSetupHandler::HandleConfigure,
base::Unretained(this)));
web_ui()->RegisterMessageCallback(
- "SyncSetupAttachHandler",
- base::Bind(&SyncSetupHandler::HandleAttachHandler,
- base::Unretained(this)));
- web_ui()->RegisterMessageCallback(
"SyncSetupShowErrorUI",
base::Bind(&SyncSetupHandler::HandleShowErrorUI,
base::Unretained(this)));
@@ -1036,18 +1032,6 @@ void SyncSetupHandler::HandleConfigure(const ListValue* args) {
ProfileMetrics::LogProfileSyncInfo(ProfileMetrics::SYNC_CHOOSE);
}
-void SyncSetupHandler::HandleAttachHandler(const ListValue* args) {
- bool force_login = false;
- std::string json;
- if (args->GetString(0, &json) && !json.empty()) {
- scoped_ptr<Value> parsed_value(base::JSONReader::Read(json));
- DictionaryValue* result = static_cast<DictionaryValue*>(parsed_value.get());
- result->GetBoolean("forceLogin", &force_login);
- }
-
- OpenSyncSetup(force_login);
-}
-
void SyncSetupHandler::HandleShowErrorUI(const ListValue* args) {
DCHECK(!configuring_sync_);
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698