summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/thumbnail_database.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:56:17 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:56:17 +0000
commit11f48572859aca238afeb436d2504c5ffab49f07 (patch)
tree1b31af349eb99a9e83716f5add3273b42bee41cf /chrome/browser/history/thumbnail_database.cc
parentaf530ac147feb1b04446f529daa4cc4448f89b23 (diff)
downloadchromium_src-11f48572859aca238afeb436d2504c5ffab49f07.zip
chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.gz
chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.bz2
Fixes almost all of the rest of lint errors in the chrome/ directory (minus the really hard ones which will need actual review instead of rubber-stamping.)
Review URL: http://codereview.chromium.org/386026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/thumbnail_database.cc')
-rw-r--r--chrome/browser/history/thumbnail_database.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/chrome/browser/history/thumbnail_database.cc b/chrome/browser/history/thumbnail_database.cc
index 8ce38da..60b8985 100644
--- a/chrome/browser/history/thumbnail_database.cc
+++ b/chrome/browser/history/thumbnail_database.cc
@@ -111,29 +111,6 @@ InitStatus ThumbnailDatabase::Init(const FilePath& db_name,
return INIT_FAILURE;
}
- // The following code is useful in debugging the thumbnail database. Upon
- // startup, it will spit out a file for each thumbnail in the database so you
- // can open them in an external viewer. Insert the path name on your system
- // into the string below (I recommend using a blank directory since there may
- // be a lot of files).
-#if 0
- sql::Statement statement(db_.GetUniqueStatement(
- "SELECT id, image_data FROM favicons"));
- while (statement.Step()) {
- int idx = statement.ColumnInt(0);
- std::vector<unsigned char> data;
- statement.ColumnBlobAsVector(1, &data);
-
- char filename[256];
- sprintf(filename, "<<< YOUR PATH HERE >>>\\%d.png", idx);
- if (!data.empty()) {
- file_util::WriteFile(ASCIIToWide(std::string(filename)),
- reinterpret_cast<char*>(&data[0]),
- data.size());
- }
- }
-#endif
-
return INIT_OK;
}