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

Side by Side Diff: chrome/browser/google_apis/gdata_util.cc

Issue 11363234: google_apis: Remove PostBlockingPoolSequencedTask () and friends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove #include Created 8 years, 1 month 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/google_apis/gdata_util.h" 5 #include "chrome/browser/google_apis/gdata_util.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 std::string FormatTimeAsStringLocaltime(const base::Time& time) { 180 std::string FormatTimeAsStringLocaltime(const base::Time& time) {
181 base::Time::Exploded exploded; 181 base::Time::Exploded exploded;
182 time.LocalExplode(&exploded); 182 time.LocalExplode(&exploded);
183 183
184 return base::StringPrintf( 184 return base::StringPrintf(
185 "%04d-%02d-%02dT%02d:%02d:%02d.%03d", 185 "%04d-%02d-%02dT%02d:%02d:%02d.%03d",
186 exploded.year, exploded.month, exploded.day_of_month, 186 exploded.year, exploded.month, exploded.day_of_month,
187 exploded.hour, exploded.minute, exploded.second, exploded.millisecond); 187 exploded.hour, exploded.minute, exploded.second, exploded.millisecond);
188 } 188 }
189 189
190 void PostBlockingPoolSequencedTask(
191 const tracked_objects::Location& from_here,
192 base::SequencedTaskRunner* blocking_task_runner,
193 const base::Closure& task) {
194 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
195
196 const bool posted = blocking_task_runner->PostTask(from_here, task);
197 DCHECK(posted);
198 }
199
200 void PostBlockingPoolSequencedTaskAndReply(
201 const tracked_objects::Location& from_here,
202 base::SequencedTaskRunner* blocking_task_runner,
203 const base::Closure& request_task,
204 const base::Closure& reply_task) {
205 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
206
207 const bool posted = blocking_task_runner->PostTaskAndReply(
208 from_here, request_task, reply_task);
209 DCHECK(posted);
210 }
211
212 } // namespace util 190 } // namespace util
213 } // namespace google_apis 191 } // namespace google_apis
OLDNEW
« chrome/browser/google_apis/gdata_util.h ('K') | « chrome/browser/google_apis/gdata_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698