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

Side by Side Diff: components/gcm_driver/gcm_delayed_task_controller.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/gcm_driver/gcm_delayed_task_controller.h" 5 #include "components/gcm_driver/gcm_delayed_task_controller.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 10
9 namespace gcm { 11 namespace gcm {
10 12
11 GCMDelayedTaskController::GCMDelayedTaskController() : ready_(false) { 13 GCMDelayedTaskController::GCMDelayedTaskController() : ready_(false) {
12 } 14 }
13 15
14 GCMDelayedTaskController::~GCMDelayedTaskController() { 16 GCMDelayedTaskController::~GCMDelayedTaskController() {
15 } 17 }
16 18
(...skipping 12 matching lines...) Expand all
29 31
30 void GCMDelayedTaskController::RunTasks() { 32 void GCMDelayedTaskController::RunTasks() {
31 DCHECK(ready_); 33 DCHECK(ready_);
32 34
33 for (size_t i = 0; i < delayed_tasks_.size(); ++i) 35 for (size_t i = 0; i < delayed_tasks_.size(); ++i)
34 delayed_tasks_[i].Run(); 36 delayed_tasks_[i].Run();
35 delayed_tasks_.clear(); 37 delayed_tasks_.clear();
36 } 38 }
37 39
38 } // namespace gcm 40 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_delayed_task_controller.h ('k') | components/gcm_driver/gcm_desktop_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698