commit | f67090c1fc65eaf43cfd8e87c22f1a5973237656 | [log] [tgz] |
---|---|---|
author | Archana Simha <[email protected]> | Mon May 06 23:43:23 2019 |
committer | Commit Bot <[email protected]> | Mon May 06 23:43:23 2019 |
tree | 68d147332383444d3081f4f09487f4f49cf40ac5 | |
parent | 8931590b08a9696da2225ab19ded62629125721e [diff] [blame] |
PhishGuard: Password is now captured if the user pastes the password. A password protection warning will be triggered if a user pastes a password they have already used on potential phishing websites. The browser test is in a separate cl until the addition of a keycode for CTRL/COMMAND+V is approved. (https://chromium-review.googlesource.com/c/chromium/src/+/1597540). Bug: 948767 Change-Id: I2dc319ce1924e670b4bcbd7b02050c1a81fbffef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576118 Commit-Queue: Varun Khaneja <[email protected]> Reviewed-by: Nasko Oskov <[email protected]> Reviewed-by: Varun Khaneja <[email protected]> Reviewed-by: Vadym Doroshenko <[email protected]> Cr-Commit-Position: refs/heads/master@{#657034}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc index a5c21f3..c5c6435 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3634,6 +3634,8 @@ return; focused_frame->GetFrameInputHandler()->Paste(); + for (auto& observer : observers_) + observer.OnPaste(); RecordAction(base::UserMetricsAction("Paste")); } @@ -3643,6 +3645,8 @@ return; focused_frame->GetFrameInputHandler()->PasteAndMatchStyle(); + for (auto& observer : observers_) + observer.OnPaste(); RecordAction(base::UserMetricsAction("PasteAndMatchStyle")); }