diff options
Diffstat (limited to 'chrome/browser/ui/webui/chromeos/drive_internals_ui.cc')
-rw-r--r-- | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc index 31e5ddd..e5398f5 100644 --- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc +++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc @@ -120,7 +120,7 @@ void GetFreeDiskSpace(const base::FilePath& home_path, // Formats |entry| into text. std::string FormatEntry(const base::FilePath& path, const drive::ResourceEntry& entry) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); using base::StringAppendF; @@ -313,7 +313,7 @@ class DriveInternalsWebUIHandler : public content::WebUIMessageHandler { void DriveInternalsWebUIHandler::OnGetAboutResource( google_apis::GDataErrorCode status, scoped_ptr<google_apis::AboutResource> parsed_about_resource) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); if (status != google_apis::HTTP_SUCCESS) { LOG(ERROR) << "Failed to get about resource"; @@ -337,7 +337,7 @@ void DriveInternalsWebUIHandler::OnGetAboutResource( void DriveInternalsWebUIHandler::OnGetAppList( google_apis::GDataErrorCode status, scoped_ptr<google_apis::AppList> parsed_app_list) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); if (status != google_apis::HTTP_SUCCESS) { LOG(ERROR) << "Failed to get app list"; @@ -393,7 +393,7 @@ void DriveInternalsWebUIHandler::RegisterMessages() { drive::DriveIntegrationService* DriveInternalsWebUIHandler::GetIntegrationService() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); Profile* profile = Profile::FromWebUI(web_ui()); drive::DriveIntegrationService* service = @@ -404,14 +404,14 @@ DriveInternalsWebUIHandler::GetIntegrationService() { } drive::DriveServiceInterface* DriveInternalsWebUIHandler::GetDriveService() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); Profile* profile = Profile::FromWebUI(web_ui()); return drive::util::GetDriveServiceByProfile(profile); } drive::DebugInfoCollector* DriveInternalsWebUIHandler::GetDebugInfoCollector() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveIntegrationService* integration_service = GetIntegrationService(); return integration_service ? @@ -419,7 +419,7 @@ drive::DebugInfoCollector* DriveInternalsWebUIHandler::GetDebugInfoCollector() { } void DriveInternalsWebUIHandler::OnPageLoaded(const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveIntegrationService* integration_service = GetIntegrationService(); @@ -455,7 +455,7 @@ void DriveInternalsWebUIHandler::OnPageLoaded(const base::ListValue* args) { } void DriveInternalsWebUIHandler::UpdateDriveRelatedPreferencesSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); const char* kDriveRelatedPreferences[] = { prefs::kDisableDrive, @@ -481,7 +481,7 @@ void DriveInternalsWebUIHandler::UpdateDriveRelatedPreferencesSection() { void DriveInternalsWebUIHandler::UpdateConnectionStatusSection( drive::DriveServiceInterface* drive_service) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(drive_service); std::string status; @@ -514,7 +514,7 @@ void DriveInternalsWebUIHandler::UpdateConnectionStatusSection( void DriveInternalsWebUIHandler::UpdateAboutResourceSection( drive::DriveServiceInterface* drive_service) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(drive_service); drive_service->GetAboutResource( @@ -524,7 +524,7 @@ void DriveInternalsWebUIHandler::UpdateAboutResourceSection( void DriveInternalsWebUIHandler::UpdateAppListSection( drive::DriveServiceInterface* drive_service) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(drive_service); drive_service->GetAppList( @@ -534,7 +534,7 @@ void DriveInternalsWebUIHandler::UpdateAppListSection( void DriveInternalsWebUIHandler::UpdateLocalMetadataSection( drive::DebugInfoCollector* debug_info_collector) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(debug_info_collector); debug_info_collector->GetMetadata( @@ -544,7 +544,7 @@ void DriveInternalsWebUIHandler::UpdateLocalMetadataSection( void DriveInternalsWebUIHandler::OnGetFilesystemMetadataForLocal( const drive::FileSystemMetadata& metadata) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); base::DictionaryValue local_metadata; local_metadata.SetDouble("account-largest-changestamp-local", @@ -554,7 +554,7 @@ void DriveInternalsWebUIHandler::OnGetFilesystemMetadataForLocal( } void DriveInternalsWebUIHandler::ClearAccessToken(const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveServiceInterface* drive_service = GetDriveService(); if (drive_service) @@ -563,7 +563,7 @@ void DriveInternalsWebUIHandler::ClearAccessToken(const base::ListValue* args) { void DriveInternalsWebUIHandler::ClearRefreshToken( const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveServiceInterface* drive_service = GetDriveService(); if (drive_service) @@ -572,7 +572,7 @@ void DriveInternalsWebUIHandler::ClearRefreshToken( void DriveInternalsWebUIHandler::ResetDriveFileSystem( const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveIntegrationService* integration_service = GetIntegrationService(); @@ -584,21 +584,21 @@ void DriveInternalsWebUIHandler::ResetDriveFileSystem( } void DriveInternalsWebUIHandler::ResetFinished(bool success) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); web_ui()->CallJavascriptFunction("updateResetStatus", base::FundamentalValue(success)); } void DriveInternalsWebUIHandler::ListFileEntries(const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); UpdateFileSystemContentsSection(); } void DriveInternalsWebUIHandler::UpdateDeltaUpdateStatusSection( drive::DebugInfoCollector* debug_info_collector) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(debug_info_collector); debug_info_collector->GetMetadata( @@ -609,7 +609,7 @@ void DriveInternalsWebUIHandler::UpdateDeltaUpdateStatusSection( void DriveInternalsWebUIHandler::OnGetFilesystemMetadataForDeltaUpdate( const drive::FileSystemMetadata& metadata) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); Profile* profile = Profile::FromWebUI(web_ui()); drive::DriveNotificationManager* drive_notification_manager = @@ -635,7 +635,7 @@ void DriveInternalsWebUIHandler::OnGetFilesystemMetadataForDeltaUpdate( void DriveInternalsWebUIHandler::UpdateInFlightOperationsSection( drive::JobListInterface* job_list) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(job_list); std::vector<drive::JobInfo> info_list = job_list->GetJobInfoList(); @@ -658,7 +658,7 @@ void DriveInternalsWebUIHandler::UpdateInFlightOperationsSection( } void DriveInternalsWebUIHandler::UpdateGCacheContentsSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); // Start updating the GCache contents section. Profile* profile = Profile::FromWebUI(web_ui()); @@ -678,7 +678,7 @@ void DriveInternalsWebUIHandler::UpdateGCacheContentsSection() { } void DriveInternalsWebUIHandler::UpdateFileSystemContentsSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DebugInfoCollector* debug_info_collector = GetDebugInfoCollector(); if (!debug_info_collector) @@ -701,7 +701,7 @@ void DriveInternalsWebUIHandler::UpdateFileSystemContentsSection() { } void DriveInternalsWebUIHandler::UpdateLocalStorageUsageSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); // Propagate the amount of local free space in bytes. base::FilePath home_path; @@ -720,7 +720,7 @@ void DriveInternalsWebUIHandler::UpdateLocalStorageUsageSection() { void DriveInternalsWebUIHandler::UpdateCacheContentsSection( drive::DebugInfoCollector* debug_info_collector) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(debug_info_collector); debug_info_collector->IterateFileCache( @@ -730,7 +730,7 @@ void DriveInternalsWebUIHandler::UpdateCacheContentsSection( } void DriveInternalsWebUIHandler::UpdateEventLogSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveIntegrationService* integration_service = GetIntegrationService(); @@ -761,7 +761,7 @@ void DriveInternalsWebUIHandler::UpdateEventLogSection() { } void DriveInternalsWebUIHandler::UpdatePathConfigurationsSection() { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); Profile* const profile = Profile::FromWebUI(web_ui()); @@ -791,7 +791,7 @@ void DriveInternalsWebUIHandler::UpdatePathConfigurationsSection() { void DriveInternalsWebUIHandler::OnGetGCacheContents( base::ListValue* gcache_contents, base::DictionaryValue* gcache_summary) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(gcache_contents); DCHECK(gcache_summary); @@ -804,7 +804,7 @@ void DriveInternalsWebUIHandler::OnGetResourceEntryByPath( const base::FilePath& path, drive::FileError error, scoped_ptr<drive::ResourceEntry> entry) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); if (error == drive::FILE_ERROR_OK) { DCHECK(entry.get()); @@ -817,7 +817,7 @@ void DriveInternalsWebUIHandler::OnReadDirectoryByPath( const base::FilePath& parent_path, drive::FileError error, scoped_ptr<drive::ResourceEntryVector> entries) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); if (error == drive::FILE_ERROR_OK) { DCHECK(entries.get()); @@ -851,7 +851,7 @@ void DriveInternalsWebUIHandler::OnReadDirectoryByPath( void DriveInternalsWebUIHandler::UpdateCacheEntry( const std::string& local_id, const drive::FileCacheEntry& cache_entry) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); // Convert |cache_entry| into a dictionary. base::DictionaryValue value; @@ -866,7 +866,7 @@ void DriveInternalsWebUIHandler::UpdateCacheEntry( void DriveInternalsWebUIHandler::OnGetFreeDiskSpace( base::DictionaryValue* local_storage_summary) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(local_storage_summary); web_ui()->CallJavascriptFunction( @@ -874,7 +874,7 @@ void DriveInternalsWebUIHandler::OnGetFreeDiskSpace( } void DriveInternalsWebUIHandler::OnPeriodicUpdate(const base::ListValue* args) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + DCHECK_CURRENTLY_ON(BrowserThread::UI); drive::DriveIntegrationService* integration_service = GetIntegrationService(); |