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

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

Issue 9233018: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 11 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
« no previous file with comments | « base/timer.cc ('k') | chrome/browser/google/google_url_tracker.cc » ('j') | 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/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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 *os_version = "unknown"; 166 *os_version = "unknown";
167 #endif 167 #endif
168 } 168 }
169 169
170 // static 170 // static
171 void FeedbackUtil::DispatchFeedback(Profile* profile, 171 void FeedbackUtil::DispatchFeedback(Profile* profile,
172 std::string* post_body, 172 std::string* post_body,
173 int64 delay) { 173 int64 delay) {
174 DCHECK(post_body); 174 DCHECK(post_body);
175 175
176 MessageLoop::current()->PostDelayedTask(FROM_HERE, base::Bind( 176 MessageLoop::current()->PostDelayedTask(
177 &FeedbackUtil::SendFeedback, profile, post_body, delay), delay); 177 FROM_HERE,
178 base::Bind(&FeedbackUtil::SendFeedback, profile, post_body, delay),
179 base::TimeDelta::FromMilliseconds(delay));
178 } 180 }
179 181
180 // static 182 // static
181 void FeedbackUtil::SendFeedback(Profile* profile, 183 void FeedbackUtil::SendFeedback(Profile* profile,
182 std::string* post_body, 184 std::string* post_body,
183 int64 previous_delay) { 185 int64 previous_delay) {
184 DCHECK(post_body); 186 DCHECK(post_body);
185 187
186 GURL post_url; 188 GURL post_url;
187 if (CommandLine::ForCurrentProcess()-> 189 if (CommandLine::ForCurrentProcess()->
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 if (screenshot_size == NULL) 405 if (screenshot_size == NULL)
404 screenshot_size = new gfx::Rect(); 406 screenshot_size = new gfx::Rect();
405 return *screenshot_size; 407 return *screenshot_size;
406 } 408 }
407 409
408 // static 410 // static
409 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { 411 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) {
410 gfx::Rect& screen_size = GetScreenshotSize(); 412 gfx::Rect& screen_size = GetScreenshotSize();
411 screen_size = rect; 413 screen_size = rect;
412 } 414 }
OLDNEW
« no previous file with comments | « base/timer.cc ('k') | chrome/browser/google/google_url_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698