Network traffic annotation added to PrivetV3Session.

Network traffic annotation is added to network request of PrivetV3Session.

BUG=656607

Review-Url: https://codereview.chromium.org/2693933002
Cr-Commit-Position: refs/heads/master@{#450330}
diff --git a/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter_unittest.cc b/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter_unittest.cc
index 06ffe44..0cd5ada 100644
--- a/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter_unittest.cc
+++ b/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter_unittest.cc
@@ -14,6 +14,7 @@
 #include "content/public/browser/browser_thread.h"
 #include "content/public/test/test_browser_thread_bundle.h"
 #include "net/test/embedded_test_server/embedded_test_server.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
 #include "net/url_request/url_fetcher.h"
 #include "net/url_request/url_fetcher_delegate.h"
 #include "testing/gtest/include/gtest/gtest.h"
@@ -62,7 +63,8 @@
     quit_ = run_loop.QuitClosure();
 
     fetcher_ = net::URLFetcher::Create(server_->GetURL("/simple.html"),
-                                       net::URLFetcher::GET, this);
+                                       net::URLFetcher::GET, this,
+                                       TRAFFIC_ANNOTATION_FOR_TESTS);
     fetcher_->SetRequestContext(context_getter_.get());
     fetcher_->Start();
 
diff --git a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
index adf66eb..389d2cf 100644
--- a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
+++ b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
@@ -19,6 +19,7 @@
 #include "crypto/p224_spake.h"
 #include "net/base/load_flags.h"
 #include "net/http/http_response_headers.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
 #include "net/url_request/url_fetcher_delegate.h"
 #include "url/gurl.h"
 
@@ -171,7 +172,8 @@
     bool orphaned) {
   DCHECK(!url_fetcher_);
   DCHECK(session_);
-  url_fetcher_ = net::URLFetcher::Create(url, request_type, this);
+  url_fetcher_ = net::URLFetcher::Create(url, request_type, this,
+                                         NO_TRAFFIC_ANNOTATION_YET);
   auto timeout_task =
       orphaned ? base::Bind(&FetcherDelegate::OnTimeout, base::Owned(this))
                : base::Bind(&FetcherDelegate::OnTimeout,