Bug 1245580 - Part 2: assert GeckoAppShell.createShortcut is run on background thread r=liuche

MozReview-Commit-ID: 4KsxfvQ5mOd
This commit is contained in:
Andrzej Hunt 2016-02-04 19:24:20 -08:00
parent d6c52a90b1
commit ba93f78e51

View File

@ -821,6 +821,7 @@ public class GeckoAppShell
// This is the entry point from nsIShellService.
@WrapForJNI
public static void createShortcut(final String aTitle, final String aURI) {
ThreadUtils.assertOnBackgroundThread();
final BrowserDB db = GeckoProfile.get(getApplicationContext()).getDB();
final ContentResolver cr = getContext().getContentResolver();