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

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

Issue 149533005: Disable noisy printf in drive_integration_service.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: noise-drive_integration_service: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_integration_service.h" 5 #include "chrome/browser/chromeos/drive/drive_integration_service.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/prefs/pref_change_registrar.h" 9 #include "base/prefs/pref_change_registrar.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 dest_directory = downloads_directory.Append( 144 dest_directory = downloads_directory.Append(
145 base::FilePath::FromUTF8Unsafe(dest_directory_name)) 145 base::FilePath::FromUTF8Unsafe(dest_directory_name))
146 .InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", uniquifier)); 146 .InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", uniquifier));
147 } 147 }
148 148
149 internal::ResourceMetadataStorage::RecoveredCacheInfoMap 149 internal::ResourceMetadataStorage::RecoveredCacheInfoMap
150 recovered_cache_info; 150 recovered_cache_info;
151 metadata_storage->RecoverCacheInfoFromTrashedResourceMap( 151 metadata_storage->RecoverCacheInfoFromTrashedResourceMap(
152 &recovered_cache_info); 152 &recovered_cache_info);
153 153
154 LOG(WARNING) << "DB could not be opened for some reasons. " 154 LOG_IF(WARNING, !recovered_cache_info.empty())
155 << "Recovering cache files to " << dest_directory.value(); 155 << "DB could not be opened for some reasons. "
156 << "Recovering cache files to " << dest_directory.value();
156 if (!cache->RecoverFilesFromCacheDirectory(dest_directory, 157 if (!cache->RecoverFilesFromCacheDirectory(dest_directory,
157 recovered_cache_info)) { 158 recovered_cache_info)) {
158 LOG(WARNING) << "Failed to recover cache files."; 159 LOG(WARNING) << "Failed to recover cache files.";
159 return FILE_ERROR_FAILED; 160 return FILE_ERROR_FAILED;
160 } 161 }
161 } 162 }
162 163
163 FileError error = resource_metadata->Initialize(); 164 FileError error = resource_metadata->Initialize();
164 LOG_IF(WARNING, error != FILE_ERROR_OK) 165 LOG_IF(WARNING, error != FILE_ERROR_OK)
165 << "Failed to initialize resource metadata. " << FileErrorToString(error); 166 << "Failed to initialize resource metadata. " << FileErrorToString(error);
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 service = new DriveIntegrationService(profile, preference_watcher, 619 service = new DriveIntegrationService(profile, preference_watcher,
619 NULL, base::FilePath(), NULL); 620 NULL, base::FilePath(), NULL);
620 } else { 621 } else {
621 service = factory_for_test_->Run(profile); 622 service = factory_for_test_->Run(profile);
622 } 623 }
623 624
624 return service; 625 return service;
625 } 626 }
626 627
627 } // namespace drive 628 } // namespace drive
OLDNEW
« 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