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

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

Issue 9187008: debug::Alias GetErrorCode in download_database.cc (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_database.cc
diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
index 0ae510438660df74e7b22e2454f7f3d5622f8bda..8e29c222ecafb86aa0aceca366b69569aaf00c1a 100644
--- a/chrome/browser/history/download_database.cc
+++ b/chrome/browser/history/download_database.cc
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/debug/alias.h"
#include "base/file_path.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
@@ -283,6 +284,8 @@ void DownloadDatabase::RemoveDownloadsBetween(base::Time delete_begin,
int64 id_to_delete = dbg_statement.ColumnInt64(0);
returned_ids_.erase(id_to_delete);
}
+ int last_error_code = GetDB().GetErrorCode();
+ base::debug::Alias(&last_error_code);
CHECK_96627(dbg_statement.Succeeded());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698