| Index: chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| index 42a601594598c1ecd0315a81e4c0351201c4565a..ac1af18286ab54ff95581d9013282db4830b870e 100644
|
| --- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| +++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| @@ -56,6 +56,7 @@
|
| #include "extensions/browser/extensions_browser_client.h"
|
| #include "extensions/common/extension.h"
|
| #include "google_apis/drive/drive_api_url_generator.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "storage/browser/blob/scoped_file.h"
|
| #include "storage/common/fileapi/file_system_util.h"
|
| @@ -66,6 +67,29 @@ class RemoteChangeProcessor;
|
|
|
| namespace drive_backend {
|
|
|
| +constexpr net::NetworkTrafficAnnotationTag kTrafficAnnotation =
|
| + net::DefineNetworkTrafficAnnotation("sync_file_system", R"(
|
| + semantics {
|
| + sender: "Sync FileSystem Chrome API"
|
| + description:
|
| + "Sync FileSystem API provides an isolated FileSystem to Chrome "
|
| + "Apps. The contents of the FileSystem are automatically synced "
|
| + "among application instances through a hidden folder on Google "
|
| + "Drive. This service uploades or downloads these files for "
|
| + "synchronization."
|
| + trigger:
|
| + "When a Chrome App uses Sync FileSystem API, or when a file on "
|
| + "Google Drive is modified."
|
| + data:
|
| + "Files created by Chrome Apps via Sync FileSystem API."
|
| + destination: GOOGLE_OWNED_SERVICE
|
| + }
|
| + policy {
|
| + cookies_allowed: false
|
| + setting: "This feature cannot be disabled in settings."
|
| + policy_exception_justification: "Not implemented."
|
| + })");
|
| +
|
| std::unique_ptr<drive::DriveServiceInterface>
|
| SyncEngine::DriveServiceFactory::CreateDriveService(
|
| OAuth2TokenService* oauth2_token_service,
|
| @@ -76,7 +100,8 @@ SyncEngine::DriveServiceFactory::CreateDriveService(
|
| oauth2_token_service, url_request_context_getter, blocking_task_runner,
|
| GURL(google_apis::DriveApiUrlGenerator::kBaseUrlForProduction),
|
| GURL(google_apis::DriveApiUrlGenerator::kBaseThumbnailUrlForProduction),
|
| - std::string() /* custom_user_agent */));
|
| + std::string(), /* custom_user_agent */
|
| + kTrafficAnnotation));
|
| }
|
|
|
| class SyncEngine::WorkerObserver : public SyncWorkerInterface::Observer {
|
|
|