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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service.cc

Issue 111963006: [SyncFS] Add NULL check to SyncFileSystemService::DidInitializeFileSystemForDump (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index b1e5b6b2432ef756e70b8327d5af201b92220070..28e66ddd706917fe92efd01ec40b5ff05a2ccdca 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -505,6 +505,11 @@ void SyncFileSystemService::DidInitializeFileSystemForDump(
base::ListValue* files =
GetRemoteService(origin)->DumpFiles(origin).release();
+ if (!files) {
+ callback.Run(new base::ListValue);
+ return;
+ }
+
if (!files->GetSize()) {
callback.Run(files);
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698