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

Side by Side Diff: chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.h" 5 #include "chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.h"
6 6
7 #include <memory>
7 #include <utility> 8 #include <utility>
8 9
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 MockBrowsingDataChannelIDHelper::MockBrowsingDataChannelIDHelper() 14 MockBrowsingDataChannelIDHelper::MockBrowsingDataChannelIDHelper()
15 : BrowsingDataChannelIDHelper() {} 15 : BrowsingDataChannelIDHelper() {}
16 16
17 MockBrowsingDataChannelIDHelper:: 17 MockBrowsingDataChannelIDHelper::
18 ~MockBrowsingDataChannelIDHelper() {} 18 ~MockBrowsingDataChannelIDHelper() {}
19 19
20 void MockBrowsingDataChannelIDHelper::StartFetching( 20 void MockBrowsingDataChannelIDHelper::StartFetching(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 pair.second = true; 54 pair.second = true;
55 } 55 }
56 56
57 bool MockBrowsingDataChannelIDHelper::AllDeleted() { 57 bool MockBrowsingDataChannelIDHelper::AllDeleted() {
58 for (const auto& pair : channel_ids_) { 58 for (const auto& pair : channel_ids_) {
59 if (pair.second) 59 if (pair.second)
60 return false; 60 return false;
61 } 61 }
62 return true; 62 return true;
63 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698