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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store.cc

Issue 6894020: Adds async interface method to PersistentPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2010->2011 Created 9 years, 7 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/policy/configuration_policy_pref_store.h" 5 #include "chrome/browser/policy/configuration_policy_pref_store.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 ++pref) { 1032 ++pref) {
1033 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1033 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1034 OnPrefValueChanged(*pref)); 1034 OnPrefValueChanged(*pref));
1035 } 1035 }
1036 1036
1037 // Update the initialization flag. 1037 // Update the initialization flag.
1038 if (!initialization_complete_ && 1038 if (!initialization_complete_ &&
1039 provider_->IsInitializationComplete()) { 1039 provider_->IsInitializationComplete()) {
1040 initialization_complete_ = true; 1040 initialization_complete_ = true;
1041 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, 1041 FOR_EACH_OBSERVER(PrefStore::Observer, observers_,
1042 OnInitializationCompleted()); 1042 OnInitializationCompleted(true));
1043 } 1043 }
1044 } 1044 }
1045 1045
1046 } // namespace policy 1046 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698