OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/webui/signin/signin_dice_internals_handler.h" | |
6 | |
7 #include "base/values.h" | |
8 #include "chrome/browser/profiles/profile.h" | |
9 | |
10 SigninDiceInternalsHandler::SigninDiceInternalsHandler(Profile* profile) | |
11 : profile_(profile) { | |
12 DCHECK(profile_); | |
13 DCHECK(!profile_->IsOffTheRecord()); | |
14 } | |
15 | |
16 SigninDiceInternalsHandler::~SigninDiceInternalsHandler() {} | |
17 | |
18 void SigninDiceInternalsHandler::RegisterMessages() { | |
19 web_ui()->RegisterMessageCallback( | |
20 "enableSync", base::Bind(&SigninDiceInternalsHandler::HandleEnableSync, | |
21 base::Unretained(this))); | |
22 } | |
23 | |
24 void SigninDiceInternalsHandler::HandleEnableSync(const base::ListValue* args) { | |
25 // TODO(msard): Implement start syncing. | |
droger
2017/06/16 13:29:15
msarda
msarda
2017/06/20 10:16:43
Done.
| |
26 VLOG(1) << "[Dice] Start syncing"; | |
27 } | |
OLD | NEW |