This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a centralized places.kt which owns storage
This lets us access storage backends from different parts of the system at the same time. E.g. from both BookmarksStore as well as the upcoming Services sync integration.
- Loading branch information
Grisha Kruglov
committed
Jul 16, 2019
1 parent
ee5aba1
commit 8fbbcbf
Showing
3 changed files
with
39 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/common/shared/org/mozilla/vrbrowser/browser/Places.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.vrbrowser.browser | ||
|
||
import android.content.Context | ||
import mozilla.components.browser.storage.sync.PlacesBookmarksStorage | ||
|
||
/** | ||
* Entry point for interacting with places-backed storage layers. | ||
*/ | ||
class Places(context: Context) { | ||
val bookmarks by lazy { PlacesBookmarksStorage(context) } | ||
} |