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

Side by Side Diff: chrome/browser/value_store/caching_value_store.cc

Issue 10537116: Revert 141514 - Remove CachingValueStore in favor of an async ValueStoreFrontend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Property Changes:
Added: svn:mergeinfo
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/value_store/caching_value_store.h" 5 #include "chrome/browser/value_store/caching_value_store.h"
6 6
7 #include "chrome/browser/value_store/leveldb_value_store.h" 7 #include "chrome/browser/value_store/leveldb_value_store.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 133
134 void CachingValueStore::OnBackendReady( 134 void CachingValueStore::OnBackendReady(
135 scoped_ptr<base::DictionaryValue> values) { 135 scoped_ptr<base::DictionaryValue> values) {
136 DCHECK(CalledOnValidThread()); 136 DCHECK(CalledOnValidThread());
137 DCHECK(!cache_.get()); 137 DCHECK(!cache_.get());
138 cache_.swap(values); 138 cache_.swap(values);
139 139
140 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationComplete()); 140 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationComplete());
141 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/value_store/caching_value_store.h ('k') | chrome/browser/value_store/caching_value_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698