Commit 2d46b12d authored by olivierrobin's avatar olivierrobin Committed by Commit bot

Disable Share extension item receiver if there is no app group.

EGTests don't have the application group entitlement.
Disable the Receiver in that case.

BUG=675412

Review-Url: https://codereview.chromium.org/2588683002
Cr-Commit-Position: refs/heads/master@{#439754}
parent 04c3307c
......@@ -98,13 +98,9 @@ void LogHistogramReceivedItem(ShareExtensionItemReceived type) {
DCHECK(!_readingListModel);
DCHECK(!_bookmarkModel);
#if TARGET_IPHONE_SIMULATOR
if (![self presentedItemURL]) {
return;
}
#else
DCHECK([self presentedItemURL]);
#endif
_readingListModel = readingListModel;
_bookmarkModel = bookmarkModel;
......
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