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

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

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_cookie_helper.h" 5 #include "chrome/browser/browsing_data/mock_browsing_data_cookie_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 9 #include "base/stl_util.h"
9 #include "base/time/time.h" 10 #include "base/time/time.h"
10 #include "net/cookies/cookie_options.h" 11 #include "net/cookies/cookie_options.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper( 14 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper(
14 net::URLRequestContextGetter* request_context_getter) 15 net::URLRequestContextGetter* request_context_getter)
15 : BrowsingDataCookieHelper(request_context_getter) { 16 : BrowsingDataCookieHelper(request_context_getter) {
16 } 17 }
17 18
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 pair.second = true; 61 pair.second = true;
61 } 62 }
62 63
63 bool MockBrowsingDataCookieHelper::AllDeleted() { 64 bool MockBrowsingDataCookieHelper::AllDeleted() {
64 for (const auto& pair : cookies_) { 65 for (const auto& pair : cookies_) {
65 if (pair.second) 66 if (pair.second)
66 return false; 67 return false;
67 } 68 }
68 return true; 69 return true;
69 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698