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

Unified Diff: chrome/browser/chromeos/drive/drive_file_system.cc

Issue 13575003: drive: Make DriveFileSystem::CheckForUpdates() safer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« 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/chromeos/drive/drive_file_system.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system.cc b/chrome/browser/chromeos/drive/drive_file_system.cc
index 777a86e6032c07e6781468dc13113a4b3d4d1a78..0bdd53a786743aaa23cdf6ff4f0e8e99692d893e 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system.cc
@@ -288,7 +288,9 @@ void DriveFileSystem::CheckForUpdates() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DVLOG(1) << "CheckForUpdates";
- if (change_list_loader_->loaded() && !change_list_loader_->refreshing()) {
+ if (change_list_loader_ &&
+ change_list_loader_->loaded() &&
+ !change_list_loader_->refreshing()) {
change_list_loader_->LoadFromServerIfNeeded(
DirectoryFetchInfo(),
base::Bind(&DriveFileSystem::OnUpdateChecked,
« 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