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

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

Issue 14247011: drive: Change EventLogger to take printf format (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/event_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_prefetcher.cc
diff --git a/chrome/browser/chromeos/drive/drive_prefetcher.cc b/chrome/browser/chromeos/drive/drive_prefetcher.cc
index b2fd3e0cc77d370da01c0d55be1bc31638aaddc6..e757c988305b6848429896a4d9575c0f1931ede1 100644
--- a/chrome/browser/chromeos/drive/drive_prefetcher.cc
+++ b/chrome/browser/chromeos/drive/drive_prefetcher.cc
@@ -104,7 +104,8 @@ void DrivePrefetcher::DoPrefetch() {
for (LatestFileSet::reverse_iterator it = latest_files_.rbegin();
it != latest_files_.rend(); ++it) {
const std::string& resource_id = it->resource_id();
- event_logger_->Log("Prefetcher: Enqueue prefetching " + resource_id);
+ event_logger_->Log("Prefetcher: Enqueue prefetching %s",
+ resource_id.c_str());
file_system_->GetFileByResourceId(
resource_id,
DriveClientContext(PREFETCH),
@@ -123,9 +124,9 @@ void DrivePrefetcher::OnPrefetchFinished(const std::string& resource_id,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (error != DRIVE_FILE_OK)
LOG(WARNING) << "Prefetch failed: " << DriveFileErrorToString(error);
- event_logger_->Log(base::StringPrintf("Prefetcher: Finish fetching (%s) %s",
- DriveFileErrorToString(error).c_str(),
- resource_id.c_str()));
+ event_logger_->Log("Prefetcher: Finish fetching (%s) %s",
+ DriveFileErrorToString(error).c_str(),
+ resource_id.c_str());
}
void DrivePrefetcher::VisitFile(const DriveEntryProto& entry) {
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/event_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698