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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_system.cc

Issue 14271007: Remove public bool ChangeListLoader::loaded(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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/chromeos/drive/drive_file_system.h" 5 #include "chrome/browser/chromeos/drive/drive_file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 DriveCache::FILE_OPERATION_COPY, 1340 DriveCache::FILE_OPERATION_COPY,
1341 params.callback); 1341 params.callback);
1342 } 1342 }
1343 1343
1344 void DriveFileSystem::GetMetadata( 1344 void DriveFileSystem::GetMetadata(
1345 const GetFilesystemMetadataCallback& callback) { 1345 const GetFilesystemMetadataCallback& callback) {
1346 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1346 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1347 DCHECK(!callback.is_null()); 1347 DCHECK(!callback.is_null());
1348 1348
1349 DriveFileSystemMetadata metadata; 1349 DriveFileSystemMetadata metadata;
1350 metadata.loaded = change_list_loader_->loaded();
1351 metadata.refreshing = change_list_loader_->IsRefreshing(); 1350 metadata.refreshing = change_list_loader_->IsRefreshing();
1352 1351
1353 // Metadata related to delta update. 1352 // Metadata related to delta update.
1354 metadata.last_update_check_time = last_update_check_time_; 1353 metadata.last_update_check_time = last_update_check_time_;
1355 metadata.last_update_check_error = last_update_check_error_; 1354 metadata.last_update_check_error = last_update_check_error_;
1356 1355
1357 resource_metadata_->GetLargestChangestamp( 1356 resource_metadata_->GetLargestChangestamp(
1358 base::Bind(&OnGetLargestChangestamp, metadata, callback)); 1357 base::Bind(&OnGetLargestChangestamp, metadata, callback));
1359 } 1358 }
1360 1359
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 return; 1682 return;
1684 } 1683 }
1685 1684
1686 PlatformFileInfoProto entry_file_info; 1685 PlatformFileInfoProto entry_file_info;
1687 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 1686 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
1688 *entry_proto->mutable_file_info() = entry_file_info; 1687 *entry_proto->mutable_file_info() = entry_file_info;
1689 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); 1688 callback.Run(DRIVE_FILE_OK, entry_proto.Pass());
1690 } 1689 }
1691 1690
1692 } // namespace drive 1691 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698