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

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

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix compile error 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..77e3d4942ceee4a103abeb3e73215776a18676a4
--- /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(msarda): Implement start syncing.
+ VLOG(1) << "[Dice] Start syncing";
+}

Powered by Google App Engine
This is Rietveld 408576698