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

Unified Diff: sync/syncable/in_memory_directory_backing_store.cc

Issue 1082423002: [Sync] Make DirectoryBackingStore's db_ private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: sync/syncable/in_memory_directory_backing_store.cc
diff --git a/sync/syncable/in_memory_directory_backing_store.cc b/sync/syncable/in_memory_directory_backing_store.cc
index 8f84baa9b536e5aefeddcc9034ba1759345242ff..6e847eedbe93aa04b19ee7b053bc89ab9c1d317d 100644
--- a/sync/syncable/in_memory_directory_backing_store.cc
+++ b/sync/syncable/in_memory_directory_backing_store.cc
@@ -18,8 +18,8 @@ DirOpenResult InMemoryDirectoryBackingStore::Load(
JournalIndex* delete_journals,
MetahandleSet* metahandles_to_purge,
Directory::KernelLoadInfo* kernel_load_info) {
- if (!db_->is_open()) {
- if (!db_->OpenInMemory())
+ if (!IsOpen()) {
+ if (!OpenInMemory())
return FAILED_OPEN_DATABASE;
}
@@ -27,8 +27,9 @@ DirOpenResult InMemoryDirectoryBackingStore::Load(
return FAILED_OPEN_DATABASE;
if (consistent_cache_guid_requested_) {
- if (!db_->Execute("UPDATE share_info "
- "SET cache_guid = 'IrcjZ2jyzHDV9Io4+zKcXQ=='")) {
+ if (!db()->Execute(
+ "UPDATE share_info "
+ "SET cache_guid = 'IrcjZ2jyzHDV9Io4+zKcXQ=='")) {
return FAILED_OPEN_DATABASE;
}
}

Powered by Google App Engine
This is Rietveld 408576698