public void Init(PluginInitContext context)
        {
            this.context = context;

            // Cache all bookmarks
            var chromeBookmarks = new ChromeBookmarks();
            var mozBookmarks    = new FirefoxBookmarks();

            //TODO: Let the user select which browser's bookmarks are displayed
            // Add Firefox bookmarks
            cachedBookmarks.AddRange(mozBookmarks.GetBookmarks());
            // Add Chrome bookmarks
            cachedBookmarks.AddRange(chromeBookmarks.GetBookmarks());

            cachedBookmarks = cachedBookmarks.Distinct().ToList();
        }
Example #2
0
        public void ReloadData()
        {
            //TODO: Let the user select which browser's bookmarks are displayed
            var chromeBookmarks = new ChromeBookmarks();
            var mozBookmarks    = new FirefoxBookmarks();
            var b1 = mozBookmarks.GetBookmarks();
            var b2 = chromeBookmarks.GetBookmarks();

            b1.AddRange(b2);
            var cached = b1.Distinct().ToList();

            lock (_updateLock)
            {
                cachedBookmarks = cached;
            }
        }