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

Side by Side Diff: chrome/browser/ui/webui/policy_ui_handler.cc

Issue 2519023002: Minor PolicyStatusProvider fixes (Closed)
Patch Set: Fix test Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy_ui_handler.h" 5 #include "chrome/browser/ui/webui/policy_ui_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 public: 313 public:
314 explicit DeviceActiveDirectoryPolicyStatusProvider( 314 explicit DeviceActiveDirectoryPolicyStatusProvider(
315 policy::DeviceActiveDirectoryPolicyManager* manager); 315 policy::DeviceActiveDirectoryPolicyManager* manager);
316 ~DeviceActiveDirectoryPolicyStatusProvider() override; 316 ~DeviceActiveDirectoryPolicyStatusProvider() override;
317 317
318 // PolicyStatusProvider implementation. 318 // PolicyStatusProvider implementation.
319 void GetStatus(base::DictionaryValue* dict) override; 319 void GetStatus(base::DictionaryValue* dict) override;
320 320
321 private: 321 private:
322 const policy::CloudPolicyStore* store_; 322 const policy::CloudPolicyStore* store_;
323
324 DISALLOW_COPY_AND_ASSIGN(DeviceActiveDirectoryPolicyStatusProvider);
323 }; 325 };
324 #endif 326 #endif
325 327
326 PolicyStatusProvider::PolicyStatusProvider() {} 328 PolicyStatusProvider::PolicyStatusProvider() {}
327 329
328 PolicyStatusProvider::~PolicyStatusProvider() {} 330 PolicyStatusProvider::~PolicyStatusProvider() {}
329 331
330 void PolicyStatusProvider::SetStatusChangeCallback( 332 void PolicyStatusProvider::SetStatusChangeCallback(
331 const base::Closure& callback) { 333 const base::Closure& callback) {
332 callback_ = callback; 334 callback_ = callback;
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 } 794 }
793 795
794 void PolicyUIHandler::OnRefreshPoliciesDone() const { 796 void PolicyUIHandler::OnRefreshPoliciesDone() const {
795 web_ui()->CallJavascriptFunctionUnsafe("policy.Page.reloadPoliciesDone"); 797 web_ui()->CallJavascriptFunctionUnsafe("policy.Page.reloadPoliciesDone");
796 } 798 }
797 799
798 policy::PolicyService* PolicyUIHandler::GetPolicyService() const { 800 policy::PolicyService* PolicyUIHandler::GetPolicyService() const {
799 return policy::ProfilePolicyConnectorFactory::GetForBrowserContext( 801 return policy::ProfilePolicyConnectorFactory::GetForBrowserContext(
800 web_ui()->GetWebContents()->GetBrowserContext())->policy_service(); 802 web_ui()->GetWebContents()->GetBrowserContext())->policy_service();
801 } 803 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698