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

Unified Diff: components/open_from_clipboard/clipboard_recent_content_ios.mm

Issue 2817003003: Get maximum age of clipboard from clipboard_recent_contents.cc in iOS impl (Closed)
Patch Set: fix generic + rebase Created 3 years, 8 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: 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 930a2747fdb6bb00f0c8aa5a79517b0615e3cee4..14a8646ed8d0d549b033ded8e1b26d2504516bed 100644
--- a/components/open_from_clipboard/clipboard_recent_content_ios.mm
+++ b/components/open_from_clipboard/clipboard_recent_content_ios.mm
@@ -59,10 +59,11 @@ ClipboardRecentContentIOS::ClipboardRecentContentIOS(
const std::string& application_scheme,
NSUserDefaults* group_user_defaults)
: ClipboardRecentContentIOS([[ClipboardRecentContentImplIOS alloc]
- initWithAuthorizedSchemes:getAuthorizedSchemeList(application_scheme)
- userDefaults:group_user_defaults
- delegate:[[ClipboardRecentContentDelegateImpl alloc]
- init]]) {}
+ initWithMaxAge:MaximumAgeOfClipboard().InSecondsF()
+ authorizedSchemes:getAuthorizedSchemeList(application_scheme)
+ userDefaults:group_user_defaults
+ delegate:[[ClipboardRecentContentDelegateImpl alloc]
+ init]]) {}
ClipboardRecentContentIOS::ClipboardRecentContentIOS(
ClipboardRecentContentImplIOS* implementation) {

Powered by Google App Engine
This is Rietveld 408576698