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

Side by Side Diff: blimp/net/blimp_message_multiplexer.cc

Issue 2250433006: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/net/blimp_message_multiplexer.h" 5 #include "blimp/net/blimp_message_multiplexer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "blimp/common/create_blimp_message.h" 9 #include "blimp/common/create_blimp_message.h"
10 #include "blimp/common/proto/blimp_message.pb.h" 10 #include "blimp/common/proto/blimp_message.pb.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } // namespace 48 } // namespace
49 49
50 BlimpMessageMultiplexer::BlimpMessageMultiplexer( 50 BlimpMessageMultiplexer::BlimpMessageMultiplexer(
51 BlimpMessageProcessor* output_processor) 51 BlimpMessageProcessor* output_processor)
52 : output_weak_factory_(output_processor) {} 52 : output_weak_factory_(output_processor) {}
53 53
54 BlimpMessageMultiplexer::~BlimpMessageMultiplexer() {} 54 BlimpMessageMultiplexer::~BlimpMessageMultiplexer() {}
55 55
56 std::unique_ptr<BlimpMessageProcessor> BlimpMessageMultiplexer::CreateSender( 56 std::unique_ptr<BlimpMessageProcessor> BlimpMessageMultiplexer::CreateSender(
57 BlimpMessage::FeatureCase feature_case) { 57 BlimpMessage::FeatureCase feature_case) {
58 return base::WrapUnique( 58 return base::MakeUnique<MultiplexedSender>(output_weak_factory_.GetWeakPtr(),
59 new MultiplexedSender(output_weak_factory_.GetWeakPtr(), feature_case)); 59 feature_case);
60 } 60 }
61 } // namespace blimp 61 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/net/blimp_message_checkpointer_unittest.cc ('k') | blimp/net/blimp_message_output_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698