OLD | NEW |
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 "chrome/browser/ui/webui/chromeos/login/base_screen_handler_utils.h" | 5 #include "components/login/base_screen_handler_utils.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace login { |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 template <typename StringListType> | 11 template <typename StringListType> |
12 bool ParseStringList(const base::Value* value, StringListType* out_value) { | 12 bool ParseStringList(const base::Value* value, StringListType* out_value) { |
13 const base::ListValue* list = NULL; | 13 const base::ListValue* list = NULL; |
14 if (!value->GetAsList(&list)) | 14 if (!value->GetAsList(&list)) |
15 return false; | 15 return false; |
16 out_value->resize(list->GetSize()); | 16 out_value->resize(list->GetSize()); |
17 for (size_t i = 0; i < list->GetSize(); ++i) { | 17 for (size_t i = 0; i < list->GetSize(); ++i) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return base::StringValue(v); | 76 return base::StringValue(v); |
77 } | 77 } |
78 | 78 |
79 void CallbackWrapper0(base::Callback<void()> callback, | 79 void CallbackWrapper0(base::Callback<void()> callback, |
80 const base::ListValue* args) { | 80 const base::ListValue* args) { |
81 DCHECK(args); | 81 DCHECK(args); |
82 DCHECK(args->empty()); | 82 DCHECK(args->empty()); |
83 callback.Run(); | 83 callback.Run(); |
84 } | 84 } |
85 | 85 |
86 } // namespace chromeos | 86 } // namespace login |
OLD | NEW |