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

Side by Side Diff: content/browser/indexed_db/indexed_db_index_writer.cc

Issue 1146473002: Subsituting pattern ScopedVector push_back.(ptr.release()) with push_back(ptr.Pass()) in indexed_db (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/browser/indexed_db/indexed_db_index_writer.h" 5 #include "content/browser/indexed_db/indexed_db_index_writer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/indexed_db/indexed_db_backing_store.h" 9 #include "content/browser/indexed_db/indexed_db_backing_store.h"
10 #include "content/browser/indexed_db/indexed_db_tracing.h" 10 #include "content/browser/indexed_db/indexed_db_tracing.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 object_store.id, 153 object_store.id,
154 index.id, 154 index.id,
155 &can_add_keys, 155 &can_add_keys,
156 primary_key, 156 primary_key,
157 error_message); 157 error_message);
158 if (!backing_store_success) 158 if (!backing_store_success)
159 return false; 159 return false;
160 if (!can_add_keys) 160 if (!can_add_keys)
161 return true; 161 return true;
162 162
163 index_writers->push_back(index_writer.release()); 163 index_writers->push_back(index_writer.Pass());
164 } 164 }
165 165
166 *completed = true; 166 *completed = true;
167 return true; 167 return true;
168 } 168 }
169 169
170 } // namespace content 170 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698