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

Side by Side Diff: statsreport/uploader_aggregation-mac.mm

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 case 'L': // "LastTransmission" 105 case 'L': // "LastTransmission"
106 break; 106 break;
107 } 107 }
108 if (current != NULL) 108 if (current != NULL)
109 formatter.AddMetric(current); 109 formatter.AddMetric(current);
110 } 110 }
111 111
112 DLOG(INFO) << "formatter.output() = " << formatter.output(); 112 DLOG(INFO) << "formatter.output() = " << formatter.output();
113 return stats_uploader->UploadMetrics(extra_url_data, 113 return stats_uploader->UploadMetrics(extra_url_data,
114 user_agent, 114 user_agent,
115 formatter.output()); 115 formatter.output().c_str());
116 } 116 }
117 117
118 void ResetPersistentMetrics() { 118 void ResetPersistentMetrics() {
119 NSError *error = nil; 119 NSError *error = nil;
120 /* 120 /*
121 [[NSFileManager defaultManager] removeItemAtPath:O3DStatsPath() 121 [[NSFileManager defaultManager] removeItemAtPath:O3DStatsPath()
122 error:&error]; 122 error:&error];
123 */ 123 */
124 [[NSFileManager defaultManager] removeFileAtPath:O3DStatsPath() 124 [[NSFileManager defaultManager] removeFileAtPath:O3DStatsPath()
125 handler:nil]; 125 handler:nil];
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // Used primarily for testing. Default functionality. 237 // Used primarily for testing. Default functionality.
238 bool StatsUploader::UploadMetrics(const char* extra_url_data, 238 bool StatsUploader::UploadMetrics(const char* extra_url_data,
239 const char* user_agent, 239 const char* user_agent,
240 const char *content) { 240 const char *content) {
241 return stats_report::UploadMetrics(extra_url_data, user_agent, content); 241 return stats_report::UploadMetrics(extra_url_data, user_agent, content);
242 } 242 }
243 243
244 244
245 } // namespace stats_report 245 } // namespace stats_report
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698