Commit 108271cb authored by Colin Blundell's avatar Colin Blundell Committed by Chromium LUCI CQ

[Safe Browsing] Make scopes string for access token fetches public

This CL moves the scopes string used for safe browsing access token
fetches into safe_browsing_token_fetcher.h so that the WebLayer
implementation can reuse it rather than duplicating it.

Bug: 1080748
Change-Id: I14a028857fe30c70d59454287748704673461f4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2627310
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: default avatarXinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844488}
parent 69b81d79
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
namespace safe_browsing { namespace safe_browsing {
constexpr char kAPIScope[] =
"https://www.googleapis.com/auth/chrome-safe-browsing";
// This interface is used to fetch access tokens for communcations with Safe // This interface is used to fetch access tokens for communcations with Safe
// Browsing. It asynchronously returns an access token for the current account // Browsing. It asynchronously returns an access token for the current account
// (as determined in concrete implementations), or the empty string if no access // (as determined in concrete implementations), or the empty string if no access
......
...@@ -17,12 +17,6 @@ ...@@ -17,12 +17,6 @@
namespace safe_browsing { namespace safe_browsing {
namespace {
const char kAPIScope[] = "https://www.googleapis.com/auth/chrome-safe-browsing";
} // namespace
SafeBrowsingPrimaryAccountTokenFetcher::SafeBrowsingPrimaryAccountTokenFetcher( SafeBrowsingPrimaryAccountTokenFetcher::SafeBrowsingPrimaryAccountTokenFetcher(
signin::IdentityManager* identity_manager) signin::IdentityManager* identity_manager)
: identity_manager_(identity_manager), : identity_manager_(identity_manager),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment