| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/webui/accounts_options_handler.h" | 5 #include "chrome/browser/chromeos/webui/accounts_options_handler.h" |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/chromeos/login/user_manager.h" | 11 #include "chrome/browser/chromeos/login/user_manager.h" |
| 12 #include "chrome/browser/chromeos/user_cros_settings_provider.h" | 12 #include "chrome/browser/chromeos/user_cros_settings_provider.h" |
| 13 #include "chrome/browser/dom_ui/web_ui_util.h" | 13 #include "chrome/browser/webui/web_ui_util.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 AccountsOptionsHandler::AccountsOptionsHandler() | 19 AccountsOptionsHandler::AccountsOptionsHandler() |
| 20 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider) { | 20 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 AccountsOptionsHandler::~AccountsOptionsHandler() { | 23 AccountsOptionsHandler::~AccountsOptionsHandler() { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 user_dict->SetBoolean("owner", false); | 118 user_dict->SetBoolean("owner", false); |
| 119 | 119 |
| 120 whitelist_users.Append(user_dict); | 120 whitelist_users.Append(user_dict); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 web_ui_->CallJavascriptFunction(L"AccountsOptions.addUsers", whitelist_users); | 124 web_ui_->CallJavascriptFunction(L"AccountsOptions.addUsers", whitelist_users); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace chromeos | 127 } // namespace chromeos |
| OLD | NEW |