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

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

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/stl_util-inl.h" 12 #include "base/stl_util.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 15
16 // The vanilla error handler implements the common fucntionality for all the 16 // The vanilla error handler implements the common fucntionality for all the
17 // error handlers. Specialized error handlers are expected to only override 17 // error handlers. Specialized error handlers are expected to only override
18 // the Handler() function. 18 // the Handler() function.
19 class VanillaSQLErrorHandler : public SQLErrorHandler { 19 class VanillaSQLErrorHandler : public SQLErrorHandler {
20 public: 20 public:
21 VanillaSQLErrorHandler() : error_(SQLITE_OK) { 21 VanillaSQLErrorHandler() : error_(SQLITE_OK) {
22 } 22 }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 const char* s = column_text(index); 501 const char* s = column_text(index);
502 str->assign(s ? UTF8ToWide(s) : std::wstring()); 502 str->assign(s ? UTF8ToWide(s) : std::wstring());
503 return (s != NULL); 503 return (s != NULL);
504 } 504 }
505 505
506 std::wstring SQLStatement::column_wstring(int index) { 506 std::wstring SQLStatement::column_wstring(int index) {
507 std::wstring wstr; 507 std::wstring wstr;
508 column_wstring(index, &wstr); 508 column_wstring(index, &wstr);
509 return wstr; 509 return wstr;
510 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698