Chromium Code Reviews| 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..38c7efb310870eb001c68fba77369fe2ee4a6e8b 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,28 @@ class RemoteChangeProcessor; |
| namespace drive_backend { |
| +constexpr net::NetworkTrafficAnnotationTag kTrafficAnnotation = |
| + net::DefineNetworkTrafficAnnotation("...", R"( |
|
tzik
2017/03/08 05:30:34
sync_file_system
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + semantics { |
| + sender: "..." |
|
tzik
2017/03/08 05:30:34
Sync FileSystem Chrome API
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + description: "..." |
|
tzik
2017/03/08 05:30:34
Sync FileSystem API provides an isolated FileSyste
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + trigger: "..." |
|
tzik
2017/03/08 05:30:34
When a Chrome App uses Sync FileSystem API, or whe
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + data: "..." |
|
tzik
2017/03/08 05:30:34
Files that created by Chrome Apps via Sync FileSys
Ramin Halavati
2017/03/08 09:41:19
Done.
|
| + destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
|
tzik
2017/03/08 05:30:34
GOOGLE_OWNED_SERVICE
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + } |
| + policy { |
| + cookies_allowed: false/true |
|
tzik
2017/03/08 05:30:34
false
Ramin Halavati
2017/03/08 09:41:20
Done.
|
| + cookies_store: "..." |
|
tzik
2017/03/08 05:30:34
This feature cannot be disabled in settings.
Ramin Halavati
2017/03/08 09:41:19
Done.
|
| + setting: "..." |
| + policy { |
| + [POLICY_NAME] { |
| + policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
| + [POLICY_NAME]: ... //(value to disable it) |
| + } |
| + } |
| + policy_exception_justification: "..." |
|
tzik
2017/03/08 05:30:34
Not implemented.
Ramin Halavati
2017/03/08 09:41:19
Done.
|
| + })"); |
| + |
| std::unique_ptr<drive::DriveServiceInterface> |
| SyncEngine::DriveServiceFactory::CreateDriveService( |
| OAuth2TokenService* oauth2_token_service, |
| @@ -76,7 +99,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 { |