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

Unified Diff: ios/chrome/widget_extension/widget_view_controller.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
« no previous file with comments | « components/open_from_clipboard/clipboard_recent_content_ios_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/widget_extension/widget_view_controller.mm
diff --git a/ios/chrome/widget_extension/widget_view_controller.mm b/ios/chrome/widget_extension/widget_view_controller.mm
index b68b97a491f1179433504999bb448544643bd6ba..141cc231832d6d646736c8bcb5ee0fc903cee702 100644
--- a/ios/chrome/widget_extension/widget_view_controller.mm
+++ b/ios/chrome/widget_extension/widget_view_controller.mm
@@ -55,9 +55,10 @@ NSString* const kXCallbackURLHost = @"x-callback-url";
self = [super init];
if (self) {
_clipboardRecentContent = [[ClipboardRecentContentImplIOS alloc]
- initWithAuthorizedSchemes:[NSSet setWithObjects:@"http", @"https", nil]
- userDefaults:app_group::GetGroupUserDefaults()
- delegate:nil];
+ initWithMaxAge:1 * 60 * 60
+ authorizedSchemes:[NSSet setWithObjects:@"http", @"https", nil]
+ userDefaults:app_group::GetGroupUserDefaults()
+ delegate:nil];
}
return self;
}
« no previous file with comments | « components/open_from_clipboard/clipboard_recent_content_ios_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698