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

Side by Side Diff: chrome/browser/feedback/feedback_util.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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/feedback/feedback_util.h" 5 #include "chrome/browser/feedback/feedback_util.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const int kHttpPostFailClientError = 400; 120 const int kHttpPostFailClientError = 400;
121 const int kHttpPostFailServerError = 500; 121 const int kHttpPostFailServerError = 500;
122 122
123 const int64 kInitialRetryDelay = 900000; // 15 minutes 123 const int64 kInitialRetryDelay = 900000; // 15 minutes
124 const int64 kRetryDelayIncreaseFactor = 2; 124 const int64 kRetryDelayIncreaseFactor = 2;
125 const int64 kRetryDelayLimit = 14400000; // 4 hours 125 const int64 kRetryDelayLimit = 14400000; // 4 hours
126 126
127 const char kArbitraryMimeType[] = "application/octet-stream"; 127 const char kArbitraryMimeType[] = "application/octet-stream";
128 const char kLogsAttachmentName[] = "system_logs.zip"; 128 const char kLogsAttachmentName[] = "system_logs.zip";
129 129
130 #if defined(OS_CHROMEOS)
130 const int kChromeOSProductId = 208; 131 const int kChromeOSProductId = 208;
132 #else
131 const int kChromeBrowserProductId = 237; 133 const int kChromeBrowserProductId = 237;
134 #endif
132 135
133 // Simple net::URLFetcherDelegate to clean up URLFetcher on completion. 136 // Simple net::URLFetcherDelegate to clean up URLFetcher on completion.
134 class PostCleanup : public net::URLFetcherDelegate { 137 class PostCleanup : public net::URLFetcherDelegate {
135 public: 138 public:
136 PostCleanup(Profile* profile, 139 PostCleanup(Profile* profile,
137 std::string* post_body, 140 std::string* post_body,
138 int64 previous_delay) : profile_(profile), 141 int64 previous_delay) : profile_(profile),
139 post_body_(post_body), 142 post_body_(post_body),
140 previous_delay_(previous_delay) { } 143 previous_delay_(previous_delay) { }
141 // Overridden from net::URLFetcherDelegate. 144 // Overridden from net::URLFetcherDelegate.
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 if (!zip::Zip(temp_path, zip_file, false)) 406 if (!zip::Zip(temp_path, zip_file, false))
404 return false; 407 return false;
405 408
406 if (!base::ReadFileToString(zip_file, compressed_logs)) 409 if (!base::ReadFileToString(zip_file, compressed_logs))
407 return false; 410 return false;
408 411
409 return true; 412 return true;
410 } 413 }
411 414
412 } // namespace feedback_util 415 } // namespace feedback_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698