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/authenticator.h" | 11 #include "chrome/browser/chromeos/login/authenticator.h" |
12 #include "chrome/browser/chromeos/login/user_manager.h" | 12 #include "chrome/browser/chromeos/login/user_manager.h" |
13 #include "chrome/browser/chromeos/user_cros_settings_provider.h" | 13 #include "chrome/browser/chromeos/user_cros_settings_provider.h" |
14 #include "chrome/browser/webui/options/options_managed_banner_handler.h" | 14 #include "chrome/browser/webui/options/options_managed_banner_handler.h" |
15 #include "chrome/browser/webui/web_ui_util.h" | |
16 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "content/browser/webui/web_ui_util.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 | 21 |
22 AccountsOptionsHandler::AccountsOptionsHandler() | 22 AccountsOptionsHandler::AccountsOptionsHandler() |
23 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider) { | 23 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider) { |
24 } | 24 } |
25 | 25 |
26 AccountsOptionsHandler::~AccountsOptionsHandler() { | 26 AccountsOptionsHandler::~AccountsOptionsHandler() { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 void AccountsOptionsHandler::Initialize() { | 128 void AccountsOptionsHandler::Initialize() { |
129 DCHECK(web_ui_); | 129 DCHECK(web_ui_); |
130 banner_handler_.reset( | 130 banner_handler_.reset( |
131 new OptionsManagedBannerHandler(web_ui_, | 131 new OptionsManagedBannerHandler(web_ui_, |
132 ASCIIToUTF16("AccountsOptions"), | 132 ASCIIToUTF16("AccountsOptions"), |
133 OPTIONS_PAGE_ACCOUNTS)); | 133 OPTIONS_PAGE_ACCOUNTS)); |
134 } | 134 } |
135 | 135 |
136 } // namespace chromeos | 136 } // namespace chromeos |
OLD | NEW |