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

Unified Diff: chrome/browser/history/thumbnail_database.cc

Issue 384103: This patch is the rest of the lint cleanup minus the other open issue. (Closed)
Patch Set: Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | chrome/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/thumbnail_database.cc
diff --git a/chrome/browser/history/thumbnail_database.cc b/chrome/browser/history/thumbnail_database.cc
index 8ce38da79f5aba32f2770c7b5d0fb5529d4e76ee..60b8985646041bcb06ef046e6c63a3c739f3ad7a 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;
}
« no previous file with comments | « chrome/browser/dom_ui/filebrowse_ui.cc ('k') | chrome/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698