Chromium Code Reviews| 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"; |
| +} |