Closed Bug 1335760 Opened 8 years ago Closed 8 years ago

Migrate dispatch_once uses in Profile to be regular properties and de-singleton the class

Categories

(Firefox for iOS :: Data Storage, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Iteration:
1.15

People

(Reporter: sleroux, Assigned: sleroux)

References

Details

(Whiteboard: [MobileCore])

Attachments

(1 file)

Swift 3 removes the use of dispatch_once which we were using for initializing our loginsDB handle and key only once app-wide. Moving these properties to use static instead also causes issues because files is an instance property and is not accessible from inside the static block. This only worked before because of the use of dispatch_once. The solution is to migrate Profile to no longer being a singleton and make the loginsDB/key properties regular properties.
Iteration: --- → 1.14
Whiteboard: [MobileCore]
Attachment #8832499 - Flags: review?(rnewman) → review-
Iteration: 1.14 → 1.15
Comment on attachment 8832499 [details] Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2368#attch-to-bugzilla Reflagging for review. I think Github is being a bit slow because my new commit isn't showing up yet on the PR.
Attachment #8832499 - Flags: review- → review?(rnewman)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Attachment #8832499 - Flags: review?(rnewman) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: