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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.cc

Issue 9836086: Added logic that will return the result of the first chunk of root feed and continue fetching the r… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed asserts in browser_tests Created 8 years, 9 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: chrome/browser/chromeos/gdata/gdata_files.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_files.cc b/chrome/browser/chromeos/gdata/gdata_files.cc
index 0796b55446cd12172a0bab31e97f8a0af83cc934..3db23f1b59e3a27a8b923ada011a197b747c2df2 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.cc
+++ b/chrome/browser/chromeos/gdata/gdata_files.cc
@@ -353,7 +353,6 @@ std::string GDataRootDirectory::CacheEntry::ToString() const {
GDataRootDirectory::GDataRootDirectory(GDataFileSystem* file_system)
: ALLOW_THIS_IN_INITIALIZER_LIST(GDataDirectory(NULL, this)),
file_system_(file_system) {
- DCHECK(file_system_);
}
GDataRootDirectory::~GDataRootDirectory() {
@@ -493,7 +492,8 @@ void GDataRootDirectory::GetCacheState(
const std::string& resource_id,
const std::string& md5,
const GetCacheStateCallback& callback) {
- file_system_->GetCacheState(resource_id, md5, callback);
+ if (file_system_)
+ file_system_->GetCacheState(resource_id, md5, callback);
}
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698