Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: components/cryptauth/cryptauth_api_call_flow.cc

Issue 2888053003: Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. (Closed)
Patch Set: Annotations updated. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cryptauth/cryptauth_api_call_flow.cc
diff --git a/components/cryptauth/cryptauth_api_call_flow.cc b/components/cryptauth/cryptauth_api_call_flow.cc
index cfacd8992bb756a5992fea97af5af287d297879e..c0de9b4e44609d4b5e80e9bacb6cb9305e8e1db4 100644
--- a/components/cryptauth/cryptauth_api_call_flow.cc
+++ b/components/cryptauth/cryptauth_api_call_flow.cc
@@ -6,6 +6,7 @@
#include "base/strings/string_number_conversions.h"
#include "components/proximity_auth/logging/logging.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher.h"
namespace cryptauth {
@@ -80,4 +81,10 @@ void CryptAuthApiCallFlow::ProcessApiCallFailure(
error_callback_.Run(error_message);
}
+net::PartialNetworkTrafficAnnotationTag
+CryptAuthApiCallFlow::GetNetworkTrafficAnnotationTag() {
+ DCHECK(partial_network_annotation_ != nullptr);
+ return *partial_network_annotation_.get();
+}
+
} // namespace cryptauth
« no previous file with comments | « components/cryptauth/cryptauth_api_call_flow.h ('k') | components/cryptauth/cryptauth_api_call_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698