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/ui/webui/options/chromeos/accounts_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/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" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 whitelist_users.Append(user_dict); | 111 whitelist_users.Append(user_dict); |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 web_ui_->CallJavascriptFunction("AccountsOptions.addUsers", whitelist_users); | 115 web_ui_->CallJavascriptFunction("AccountsOptions.addUsers", whitelist_users); |
116 } | 116 } |
117 | 117 |
118 void AccountsOptionsHandler::Initialize() { | 118 void AccountsOptionsHandler::Initialize() { |
119 DCHECK(web_ui_); | 119 DCHECK(web_ui_); |
120 banner_handler_.reset( | 120 banner_handler_.reset( |
121 new OptionsManagedBannerHandler(web_ui_, | 121 OptionsManagedBannerHandler::Create(web_ui_, |
122 ASCIIToUTF16("AccountsOptions"), | 122 ASCIIToUTF16("AccountsOptions"), |
123 OPTIONS_PAGE_ACCOUNTS)); | 123 OPTIONS_PAGE_ACCOUNTS)); |
124 } | 124 } |
125 | 125 |
126 } // namespace chromeos | 126 } // namespace chromeos |
OLD | NEW |