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

Side by Side Diff: chrome/common/sqlite_utils.cc

Issue 173033: Stub out sqlite3Preload when using system library. (Closed)
Patch Set: ... Created 11 years, 4 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 | « chrome/common/sqlite_utils.h ('k') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/common/sqlite_utils.h" 5 #include "chrome/common/sqlite_utils.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 const char* s = column_text(index); 400 const char* s = column_text(index);
401 str->assign(s ? UTF8ToWide(s) : std::wstring()); 401 str->assign(s ? UTF8ToWide(s) : std::wstring());
402 return (s != NULL); 402 return (s != NULL);
403 } 403 }
404 404
405 std::wstring SQLStatement::column_wstring(int index) { 405 std::wstring SQLStatement::column_wstring(int index) {
406 std::wstring wstr; 406 std::wstring wstr;
407 column_wstring(index, &wstr); 407 column_wstring(index, &wstr);
408 return wstr; 408 return wstr;
409 } 409 }
410
411 #if defined(USE_SYSTEM_SQLITE)
412 // This function is a local change to sqlite3 which doesn't exist when one is
413 // using the system sqlite library. Thus, we stub it out here.
414 int sqlite3Preload(sqlite3* db) {
415 return 0;
416 }
417 #endif
OLDNEW
« no previous file with comments | « chrome/common/sqlite_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698