Disable the HMAC-SHA256 and AES_256_GCM cipher suites for
[chromium-blink-merge.git] / base / bind_helpers.cc
blobf2fc3bb0daaed9697a899b2e80f5322e1a074fe9
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
3 // found in the LICENSE file.
5 #include "base/bind_helpers.h"
7 #include "base/callback.h"
9 namespace base {
11 void DoNothing() {
14 ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
15 : closure_(closure) {
18 ScopedClosureRunner::~ScopedClosureRunner() {
19 if (!closure_.is_null())
20 closure_.Run();
23 Closure ScopedClosureRunner::Release() {
24 Closure result = closure_;
25 closure_.Reset();
26 return result;
29 } // namespace base