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

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

Issue 672203003: ScreenContext is moved to components/login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 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/login/login_export.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 "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
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
OLDNEW
« no previous file with comments | « components/login/base_screen_handler_utils.h ('k') | components/login/login_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698