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

Side by Side Diff: chrome/browser/net/quota_policy_channel_id_store.cc

Issue 1476263004: Remove ScopedVector from IDStores (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years 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/net/quota_policy_channel_id_store.h" 5 #include "chrome/browser/net/quota_policy_channel_id_store.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 void QuotaPolicyChannelIDStore::OnLoad( 70 void QuotaPolicyChannelIDStore::OnLoad(
71 const LoadedCallback& loaded_callback, 71 const LoadedCallback& loaded_callback,
72 scoped_ptr<ChannelIDVector> channel_ids) { 72 scoped_ptr<ChannelIDVector> channel_ids) {
73 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin(); 73 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin();
74 channel_id != channel_ids->end(); 74 channel_id != channel_ids->end();
75 ++channel_id) { 75 ++channel_id) {
76 server_identifiers_.insert((*channel_id)->server_identifier()); 76 server_identifiers_.insert((*channel_id)->server_identifier());
77 } 77 }
78 loaded_callback.Run(channel_ids.Pass()); 78 loaded_callback.Run(std::move(channel_ids));
79 } 79 }
OLDNEW
« no previous file with comments | « chrome/browser/net/quota_policy_channel_id_store.h ('k') | chrome/browser/net/quota_policy_channel_id_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698