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

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

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 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
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/fake_gcm_client.h" 5 #include "components/gcm_driver/fake_gcm_client.h"
6 6
7 #include <algorithm>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/location.h" 10 #include "base/location.h"
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
11 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
12 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
13 #include "base/sys_byteorder.h" 15 #include "base/sys_byteorder.h"
14 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
15 #include "base/time/time.h" 17 #include "base/time/time.h"
16 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 delegate_->OnMessageSendError(app_id, send_error_details); 305 delegate_->OnMessageSendError(app_id, send_error_details);
304 } 306 }
305 307
306 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, 308 void FakeGCMClient::SendAcknowledgement(const std::string& app_id,
307 const std::string& message_id) { 309 const std::string& message_id) {
308 if (delegate_) 310 if (delegate_)
309 delegate_->OnSendAcknowledged(app_id, message_id); 311 delegate_->OnSendAcknowledged(app_id, message_id);
310 } 312 }
311 313
312 } // namespace gcm 314 } // namespace gcm
OLDNEW
« no previous file with comments | « components/cronet/android/url_request_adapter.cc ('k') | components/invalidation/impl/mock_ack_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698