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

Unified Diff: components/open_from_clipboard/clipboard_recent_content_ios.mm

Issue 2082513002: Add GetCurrentURL to ClipboardRecentContentIOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment feedback Created 4 years, 6 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 | « components/open_from_clipboard/clipboard_recent_content_ios.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/open_from_clipboard/clipboard_recent_content_ios.mm
diff --git a/components/open_from_clipboard/clipboard_recent_content_ios.mm b/components/open_from_clipboard/clipboard_recent_content_ios.mm
index 36df14356285f439990a01b2142a7d7f7d09a14a..4b6efd2eacd10a537dac219978f2a596b771a018 100644
--- a/components/open_from_clipboard/clipboard_recent_content_ios.mm
+++ b/components/open_from_clipboard/clipboard_recent_content_ios.mm
@@ -206,6 +206,13 @@ bool ClipboardRecentContentIOS::HasPasteboardChanged(base::TimeDelta uptime) {
return md5_changed;
}
+bool ClipboardRecentContentIOS::GetCurrentURLFromClipboard(GURL* url) {
+ if (HasPasteboardChanged(base::SysInfo::Uptime())) {
+ PasteboardChanged();
+ }
+ return GetRecentURLFromClipboard(url);
+}
+
void ClipboardRecentContentIOS::Init(base::TimeDelta uptime) {
last_pasteboard_change_count_ = NSIntegerMax;
url_from_pasteboard_cache_ = URLFromPasteboard();
« no previous file with comments | « components/open_from_clipboard/clipboard_recent_content_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698