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

Unified Diff: content/renderer/context_menu_params_builder.cc

Issue 1105263004: "Load image" context menu item to reload a LoFi image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: content/renderer/context_menu_params_builder.cc
diff --git a/content/renderer/context_menu_params_builder.cc b/content/renderer/context_menu_params_builder.cc
index 63dcd4d1e7b6b3c5b903b9dac8906f4e88882da2..5680b850a23b457280532402bad3846c102a9a1d 100644
--- a/content/renderer/context_menu_params_builder.cc
+++ b/content/renderer/context_menu_params_builder.cc
@@ -5,6 +5,7 @@
#include "content/renderer/context_menu_params_builder.h"
#include "base/logging.h"
+#include "content/child/weburlresponse_extradata_impl.h"
#include "content/common/ssl_status_serialization.h"
#include "content/public/common/context_menu_params.h"
#include "content/renderer/dom_utils.h"
@@ -43,6 +44,12 @@ ContextMenuParams ContextMenuParamsBuilder::Build(
params.referrer_policy = data.referrerPolicy;
params.suggested_filename = data.suggestedFilename;
+ if (data.imageResponseExtraData) {
+ params.image_was_fetched_lo_fi =
+ static_cast<WebURLResponseExtraDataImpl*>(data.imageResponseExtraData)->
+ was_fetched_lo_fi();
+ }
+
for (size_t i = 0; i < data.dictionarySuggestions.size(); ++i)
params.dictionary_suggestions.push_back(data.dictionarySuggestions[i]);
« content/public/common/context_menu_params.h ('K') | « content/public/common/context_menu_params.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698