Commit 850c68e6 authored by Travis Skare's avatar Travis Skare Committed by Commit Bot

[QR Generator] Disallow feature in Incognito.

Bug: 1072871
Change-Id: Id2dd5d796140df35110834c3ac66b9a7da45a15b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2158039Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Travis Skare <skare@chromium.org>
Cr-Commit-Position: refs/heads/master@{#763395}
parent 174038a9
...@@ -2662,6 +2662,9 @@ bool RenderViewContextMenu::IsQRCodeGeneratorEnabled() const { ...@@ -2662,6 +2662,9 @@ bool RenderViewContextMenu::IsQRCodeGeneratorEnabled() const {
if (!base::FeatureList::IsEnabled(kSharingQRCodeGenerator)) if (!base::FeatureList::IsEnabled(kSharingQRCodeGenerator))
return false; return false;
if (browser_context_->IsOffTheRecord())
return false;
NavigationEntry* entry = NavigationEntry* entry =
embedder_web_contents_->GetController().GetLastCommittedEntry(); embedder_web_contents_->GetController().GetLastCommittedEntry();
if (!entry || !content::IsSavableURL(entry->GetURL())) if (!entry || !content::IsSavableURL(entry->GetURL()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment