forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AW][ComponentUpdater] Load components during WebView startup
Create an EmbeddedComponentLoader and use it to connect to ComponentProviderService to load components files during WebView startup. We don't connect to the service if there are no components registered, which is the case now. Bug: 1180835 Change-Id: I42138c13c5a5ce94b843f7b266a8c8b213396827 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2712903 Reviewed-by: Sorin Jianu <[email protected]> Reviewed-by: Bo <[email protected]> Reviewed-by: Mugdha Lakhani <[email protected]> Commit-Queue: Hazem Ashmawy <[email protected]> Cr-Commit-Position: refs/heads/master@{#861618}
- Loading branch information
1 parent
e984f76
commit 870d053
Showing
9 changed files
with
75 additions
and
0 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
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
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,14 @@ | ||
// Copyright 2021 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "android_webview/browser/component_updater/registration.h" | ||
|
||
namespace android_webview { | ||
|
||
component_updater::ComponentLoaderPolicyVector GetComponentLoaderPolicies() { | ||
// TODO(crbug.com/1171762) register trust tokens component. | ||
return component_updater::ComponentLoaderPolicyVector(); | ||
} | ||
|
||
} // namespace android_webview |
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,18 @@ | ||
// Copyright 2021 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_REGISTRATION_H_ | ||
#define ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_REGISTRATION_H_ | ||
|
||
#include "components/component_updater/android/component_loader_policy.h" | ||
|
||
namespace android_webview { | ||
|
||
// ComponentLoaderPolicies for component to load in an embedded WebView during | ||
// startup. | ||
component_updater::ComponentLoaderPolicyVector GetComponentLoaderPolicies(); | ||
|
||
} // namespace android_webview | ||
|
||
#endif // ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_REGISTRATION_H_ |
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
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