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

Unified Diff: chrome/browser/ui/webui/signin/signin_dice_internals_handler.cc

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix the UI Created 3 years, 6 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/signin/signin_dice_internals_handler.cc
diff --git a/chrome/browser/ui/webui/signin/signin_dice_internals_handler.cc b/chrome/browser/ui/webui/signin/signin_dice_internals_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c3fca9da3139b17c5db46df6f2b40f9d2179952a
--- /dev/null
+++ b/chrome/browser/ui/webui/signin/signin_dice_internals_handler.cc
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/signin/signin_dice_internals_handler.h"
+
+#include "base/values.h"
+#include "chrome/browser/profiles/profile.h"
+
+SigninDiceInternalsHandler::SigninDiceInternalsHandler(Profile* profile)
+ : profile_(profile) {
+ DCHECK(profile_);
+ DCHECK(!profile_->IsOffTheRecord());
+}
+
+SigninDiceInternalsHandler::~SigninDiceInternalsHandler() {}
+
+void SigninDiceInternalsHandler::RegisterMessages() {
+ web_ui()->RegisterMessageCallback(
+ "enableSync", base::Bind(&SigninDiceInternalsHandler::HandleEnableSync,
+ base::Unretained(this)));
+}
+
+void SigninDiceInternalsHandler::HandleEnableSync(const base::ListValue* args) {
+ // TODO(msard): Implement start syncing.
droger 2017/06/16 13:29:15 msarda
msarda 2017/06/20 10:16:43 Done.
+ VLOG(1) << "[Dice] Start syncing";
+}

Powered by Google App Engine
This is Rietveld 408576698