Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
add extension function binding system
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed May 24, 2017
1 parent 6df35b0 commit 1bdaad3
Show file tree
Hide file tree
Showing 27 changed files with 1,468 additions and 89 deletions.
5 changes: 5 additions & 0 deletions atom/browser/extensions/api/atom_extensions_api_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "atom/browser/extensions/atom_extension_web_contents_observer.h"
#include "atom/browser/extensions/tab_helper.h"
#include "base/memory/ptr_util.h"
#include "brave/browser/extensions/api/storage/managed_value_store_cache.h"
#include "brave/browser/guest_view/brave_guest_view_manager_delegate.h"
#include "content/public/browser/resource_request_info.h"
#include "extensions/browser/api/management/management_api_delegate.h"
Expand Down Expand Up @@ -185,6 +186,10 @@ void AtomExtensionsAPIClient::AddAdditionalValueStoreCaches(
// Add temporary (fake) support for chrome.storage.sync.
(*caches)[settings_namespace::SYNC] =
new LocalValueStoreCache(factory);

// Add support for chrome.storage.managed.
(*caches)[settings_namespace::MANAGED] =
new ManagedValueStoreCache(context, factory, observers);
}

std::unique_ptr<guest_view::GuestViewManagerDelegate>
Expand Down
Loading

0 comments on commit 1bdaad3

Please sign in to comment.