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

Side by Side Diff: chrome/browser/sync/util/sqlite_utils.cc

Issue 7977034: Revert 102184 - [Sync] use base::Time in sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/browser/sync/util/time.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/sync/util/sqlite_utils.h" 5 #include "chrome/browser/sync/util/sqlite_utils.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 protected: 28 protected:
29 int error_; 29 int error_;
30 }; 30 };
31 31
32 class DebugSQLErrorHandler: public VanillaSQLErrorHandler { 32 class DebugSQLErrorHandler: public VanillaSQLErrorHandler {
33 public: 33 public:
34 virtual int HandleError(int error, sqlite3* db) { 34 virtual int HandleError(int error, sqlite3* db) {
35 error_ = error; 35 error_ = error;
36 NOTREACHED() << "sqlite error " << error 36 NOTREACHED() << "sqlite error " << error
37 << " " << sqlite3_errmsg(db)
38 << " db " << static_cast<void*>(db); 37 << " db " << static_cast<void*>(db);
39 return error; 38 return error;
40 } 39 }
41 }; 40 };
42 41
43 class ReleaseSQLErrorHandler : public VanillaSQLErrorHandler { 42 class ReleaseSQLErrorHandler : public VanillaSQLErrorHandler {
44 public: 43 public:
45 virtual int HandleError(int error, sqlite3* db) { 44 virtual int HandleError(int error, sqlite3* db) {
46 error_ = error; 45 error_ = error;
47 // Used to have a CHECK here. Got lots of crashes. 46 // Used to have a CHECK here. Got lots of crashes.
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 return (s != NULL); 501 return (s != NULL);
503 } 502 }
504 503
505 std::wstring SQLStatement::column_wstring(int index) { 504 std::wstring SQLStatement::column_wstring(int index) {
506 std::wstring wstr; 505 std::wstring wstr;
507 column_wstring(index, &wstr); 506 column_wstring(index, &wstr);
508 return wstr; 507 return wstr;
509 } 508 }
510 509
511 } // namespace sqlite_utils 510 } // namespace sqlite_utils
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/browser/sync/util/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698