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

Side by Side Diff: components/login/base_screen_handler_utils.cc

Issue 1038003002: Use variadic template for screen handler's AddCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « components/login/base_screen_handler_utils.h ('k') | components/webui_generator/web_ui_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/login/base_screen_handler_utils.h" 5 #include "components/login/base_screen_handler_utils.h"
6 6
7 namespace login { 7 namespace login {
8 8
9 namespace { 9 namespace {
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 base::StringValue MakeValue(const std::string& v) { 71 base::StringValue MakeValue(const std::string& v) {
72 return base::StringValue(v); 72 return base::StringValue(v);
73 } 73 }
74 74
75 base::StringValue MakeValue(const base::string16& v) { 75 base::StringValue MakeValue(const base::string16& v) {
76 return base::StringValue(v); 76 return base::StringValue(v);
77 } 77 }
78 78
79 void CallbackWrapper0(base::Callback<void()> callback,
80 const base::ListValue* args) {
81 DCHECK(args);
82 DCHECK(args->empty());
83 callback.Run();
84 }
85
86 } // namespace login 79 } // namespace login
OLDNEW
« no previous file with comments | « components/login/base_screen_handler_utils.h ('k') | components/webui_generator/web_ui_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698