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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 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
Index: chrome/browser/extensions/api/downloads/downloads_api.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc
index 5e4ebbbd2e971e57a8dcbd904481b00934307ab2..14713afd414f135da4ffcf461fb5d9e7cdace717 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -1051,7 +1051,7 @@ void DownloadsDownloadFunction::OnStarted(
VLOG(1) << __func__ << " " << item << " " << interrupt_reason;
if (item) {
DCHECK_EQ(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason);
- SetResult(base::MakeUnique<base::FundamentalValue>(
+ SetResult(base::MakeUnique<base::Value>(
static_cast<int>(item->GetId())));
if (!creator_suggested_filename.empty() ||
(creator_conflict_action !=
@@ -1862,7 +1862,7 @@ void ExtensionDownloadsEventRouter::OnDownloadRemoved(
return;
DispatchEvent(events::DOWNLOADS_ON_ERASED, downloads::OnErased::kEventName,
true, Event::WillDispatchCallback(),
- base::MakeUnique<base::FundamentalValue>(
+ base::MakeUnique<base::Value>(
static_cast<int>(download_item->GetId())));
}

Powered by Google App Engine
This is Rietveld 408576698