OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |