Bug 1074787 - Unable to Remove bookmarks via context menu, r=rnewman

This commit is contained in:
Mark Capella 2014-10-19 20:12:11 -04:00
parent 1a80978af3
commit 884b20762e

View File

@ -82,7 +82,7 @@ public class LocalBrowserDB {
private final HashMap<String, Long> mFolderIdMap;
// Use wrapped Boolean so that we can have a null state
private Boolean mDesktopBookmarksExist;
private volatile Boolean mDesktopBookmarksExist;
private final Uri mBookmarksUriWithProfile;
private final Uri mParentsUriWithProfile;
@ -759,12 +759,13 @@ public class LocalBrowserDB {
null);
try {
mDesktopBookmarksExist = c.getCount() > 0;
// Don't read back out of the cache to avoid races with invalidation.
final boolean e = c.getCount() > 0;
mDesktopBookmarksExist = e;
return e;
} finally {
c.close();
}
return mDesktopBookmarksExist;
}
@RobocopTarget