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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc

Issue 7096013: Allow device policy code to be optionally included. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes requested by torne. Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698