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

Unified Diff: content/browser/download/download_id.cc

Issue 8401001: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix ifndefs Created 9 years, 2 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 | « content/browser/download/download_id.h ('k') | content/browser/download/download_id_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_id.cc
diff --git a/content/browser/download/download_id.cc b/content/browser/download/download_id.cc
index bef4964b39d22b2114e17a51480a4f9a22759120..8cd7b0ec5a25dc2774e149a5028259b0b817f4c6 100644
--- a/content/browser/download/download_id.cc
+++ b/content/browser/download/download_id.cc
@@ -2,8 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <string>
+
+#include "base/stringprintf.h"
#include "content/browser/download/download_id.h"
+std::string DownloadId::DebugString() const {
+ return base::StringPrintf("%p:%d", domain_, local_id_);
+}
+
std::ostream& operator<<(std::ostream& out, const DownloadId& global_id) {
- return out << global_id.manager_ << ":" << global_id.local();
+ return out << global_id.DebugString();
}
« no previous file with comments | « content/browser/download/download_id.h ('k') | content/browser/download/download_id_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698