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

Side by Side Diff: chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/cloud_external_data_policy_observer.h" 5 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 27 matching lines...) Expand all
38 : public PolicyService::Observer { 38 : public PolicyService::Observer {
39 public: 39 public:
40 PolicyServiceObserver(CloudExternalDataPolicyObserver* parent, 40 PolicyServiceObserver(CloudExternalDataPolicyObserver* parent,
41 const std::string& user_id, 41 const std::string& user_id,
42 PolicyService* policy_service); 42 PolicyService* policy_service);
43 virtual ~PolicyServiceObserver(); 43 virtual ~PolicyServiceObserver();
44 44
45 // PolicyService::Observer: 45 // PolicyService::Observer:
46 virtual void OnPolicyUpdated(const PolicyNamespace& ns, 46 virtual void OnPolicyUpdated(const PolicyNamespace& ns,
47 const PolicyMap& previous, 47 const PolicyMap& previous,
48 const PolicyMap& current) OVERRIDE; 48 const PolicyMap& current) override;
49 49
50 private: 50 private:
51 CloudExternalDataPolicyObserver* parent_; 51 CloudExternalDataPolicyObserver* parent_;
52 const std::string user_id_; 52 const std::string user_id_;
53 PolicyService* policy_service_; 53 PolicyService* policy_service_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(PolicyServiceObserver); 55 DISALLOW_COPY_AND_ASSIGN(PolicyServiceObserver);
56 }; 56 };
57 57
58 CloudExternalDataPolicyObserver::PolicyServiceObserver::PolicyServiceObserver( 58 CloudExternalDataPolicyObserver::PolicyServiceObserver::PolicyServiceObserver(
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 void CloudExternalDataPolicyObserver::OnExternalDataFetched( 307 void CloudExternalDataPolicyObserver::OnExternalDataFetched(
308 const std::string& user_id, 308 const std::string& user_id,
309 scoped_ptr<std::string> data) { 309 scoped_ptr<std::string> data) {
310 FetchWeakPtrMap::iterator it = fetch_weak_ptrs_.find(user_id); 310 FetchWeakPtrMap::iterator it = fetch_weak_ptrs_.find(user_id);
311 DCHECK(it != fetch_weak_ptrs_.end()); 311 DCHECK(it != fetch_weak_ptrs_.end());
312 fetch_weak_ptrs_.erase(it); 312 fetch_weak_ptrs_.erase(it);
313 delegate_->OnExternalDataFetched(policy_, user_id, data.Pass()); 313 delegate_->OnExternalDataFetched(policy_, user_id, data.Pass());
314 } 314 }
315 315
316 } // namespace policy 316 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698