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

Side by Side Diff: sql/connection.cc

Issue 1368493002: [sql] Fix uninit vars in Connection. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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) 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 "sql/connection.h" 5 #include "sql/connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 Connection::Connection() 275 Connection::Connection()
276 : db_(NULL), 276 : db_(NULL),
277 page_size_(0), 277 page_size_(0),
278 cache_size_(0), 278 cache_size_(0),
279 exclusive_locking_(false), 279 exclusive_locking_(false),
280 restrict_to_user_(false), 280 restrict_to_user_(false),
281 transaction_nesting_(0), 281 transaction_nesting_(0),
282 needs_rollback_(false), 282 needs_rollback_(false),
283 in_memory_(false), 283 in_memory_(false),
284 poisoned_(false), 284 poisoned_(false),
285 mmap_disabled_(false),
286 mmap_enabled_(false),
287 total_changes_at_last_release_(0),
michaeln 2015/09/23 22:17:22 lgtm maybe use c++ 11 feature that lets you assig
285 stats_histogram_(NULL), 288 stats_histogram_(NULL),
286 commit_time_histogram_(NULL), 289 commit_time_histogram_(NULL),
287 autocommit_time_histogram_(NULL), 290 autocommit_time_histogram_(NULL),
288 update_time_histogram_(NULL), 291 update_time_histogram_(NULL),
289 query_time_histogram_(NULL), 292 query_time_histogram_(NULL),
290 clock_(new TimeSource()) { 293 clock_(new TimeSource()) {
291 } 294 }
292 295
293 Connection::~Connection() { 296 Connection::~Connection() {
294 Close(); 297 Close();
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 ignore_result(Execute(kNoWritableSchema)); 1479 ignore_result(Execute(kNoWritableSchema));
1477 1480
1478 return ret; 1481 return ret;
1479 } 1482 }
1480 1483
1481 base::TimeTicks TimeSource::Now() { 1484 base::TimeTicks TimeSource::Now() {
1482 return base::TimeTicks::Now(); 1485 return base::TimeTicks::Now();
1483 } 1486 }
1484 1487
1485 } // namespace sql 1488 } // namespace sql
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