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

Issue 2804613002: Network traffic annotation added to cloud_print_url_fetcher. (Closed)

Created:
3 years, 8 months ago by Ramin Halavati
Modified:
3 years, 6 months ago
CC:
chromium-reviews, msramek, battre
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Network traffic annotation added to cloud_print_url_fetcher. Network traffic annotation is added to network request of . chrome/service/cloud_print/cloud_print_url_fetcher.cc BUG=656607 Closing in favor of: https://codereview.chromium.org/2888763004

Patch Set 1 #

Patch Set 2 : Annotation updated. #

Total comments: 4

Patch Set 3 : Annotation updated. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M chrome/service/cloud_print/cloud_print_url_fetcher.cc View 1 2 2 chunks +32 lines, -1 line 8 comments Download

Messages

Total messages: 21 (7 generated)
Ramin Halavati
We are annotating all network requests in Chromium with a new NetworkTrafficAnnotation scheme. This allows ...
3 years, 8 months ago (2017-04-05 11:09:50 UTC) #2
gene1
lgtm overall, please check with vitalybuka@ he might have more context here On 2017/04/05 11:09:50, ...
3 years, 8 months ago (2017-04-05 18:37:45 UTC) #3
Ramin Halavati
On 2017/04/05 18:37:45, gene1 wrote: > lgtm overall, > please check with vitalybuka@ he might ...
3 years, 8 months ago (2017-04-06 06:47:48 UTC) #4
chromium-reviews
Best person to suggest values will be paolof@google.com (not part of chromium), he is leading ...
3 years, 8 months ago (2017-04-06 17:39:50 UTC) #5
Ramin Halavati
Vitaly, Sanjeev, Can you help with completing annotation of this network request? Or suggest someone ...
3 years, 8 months ago (2017-04-10 05:27:33 UTC) #7
Ramin Halavati
On 2017/04/10 05:27:33, Ramin Halavati wrote: > Vitaly, Sanjeev, > > Can you help with ...
3 years, 8 months ago (2017-04-18 11:35:07 UTC) #8
Vitaly Buka (NO REVIEWS)
3 years, 8 months ago (2017-04-18 17:30:16 UTC) #10
Vitaly Buka (NO REVIEWS)
lgtm
3 years, 8 months ago (2017-04-18 17:31:01 UTC) #14
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right): https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode276 chrome/service/cloud_print/cloud_print_url_fetcher.cc:276: cookies_allowed: true ths is incorrect it sets net::LOAD_DO_NOT_SEND_COOKIES ...
3 years, 8 months ago (2017-04-18 17:32:44 UTC) #15
Vitaly Buka (NO REVIEWS)
Please fix cookies part.
3 years, 8 months ago (2017-04-18 17:33:48 UTC) #16
Lei Zhang
https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right): https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode268 chrome/service/cloud_print/cloud_print_url_fetcher.cc:268: "Google Cloud Print allows users to print to a ...
3 years, 8 months ago (2017-04-18 19:16:41 UTC) #17
Ramin Halavati
Comments addressed, please review. I have added some inline questions. https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right): https://codereview.chromium.org/2804613002/diff/20001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode268 ...
3 years, 8 months ago (2017-04-19 05:59:07 UTC) #18
Lei Zhang
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_print/cloud_print_url_fetcher.cc File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right): https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_print/cloud_print_url_fetcher.cc#newcode271 chrome/service/cloud_print/cloud_print_url_fetcher.cc:271: "Printing and running background Cloud Print services." On 2017/04/19 ...
3 years, 8 months ago (2017-04-19 19:27:26 UTC) #19
Ramin Halavati
3 years, 8 months ago (2017-04-20 08:49:13 UTC) #20
On 2017/04/19 19:27:26, Lei Zhang wrote:
>
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_pr...
> File chrome/service/cloud_print/cloud_print_url_fetcher.cc (right):
> 
>
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_pr...
> chrome/service/cloud_print/cloud_print_url_fetcher.cc:271: "Printing and
running
> background Cloud Print services."
> On 2017/04/19 05:59:07, Ramin Halavati wrote:
> > Can "background" be elaborated?
> 
> This is part of the Cloud Print Connector that can run as a separate service
> process. Which is why we are in chrome/service here. The Connector can be
> standalone in the sense that it is separate from the entire
> browser/renderer/gpu/utility process hierarchy.
> 
>
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_pr...
> chrome/service/cloud_print/cloud_print_url_fetcher.cc:272: data: "..."
> On 2017/04/19 05:59:07, Ramin Halavati wrote:
> > What is sent?
> 
> StartPostRequest() and StartGetRequest() both use this helper function.
Tracing
> their callers, there are a total of 12 non-test callers. So as is, lots of
> different things.
> 
> BTW, I didn't write any of this code, so I'm just looking this up as we go.
You
> could do the same, but I'm not sure that's what you want to do. Just to set
> expectations, shall we continue this Q&A format?
> 
>
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_pr...
> chrome/service/cloud_print/cloud_print_url_fetcher.cc:273: destination:
> WEBSITE/GOOGLE_OWNED_SERVICE/OTHER/LOCAL
> On 2017/04/19 05:59:07, Ramin Halavati wrote:
> > I assume it should be OTHER?
> 
> That would be consistent with "cloud_print_privet_register" and friends.
> 
>
https://codereview.chromium.org/2804613002/diff/40001/chrome/service/cloud_pr...
> chrome/service/cloud_print/cloud_print_url_fetcher.cc:291: })");
> On 2017/04/19 05:59:07, Ramin Halavati wrote:
> > Are both policies required to disable this request or either of them does
> that?
> 
> CloudPrintSubmitEnabled doesn't belong here. It's used in the browser process,
> not the service process.

Thank you very much for the comments.
I think it's better if I move the annotations to the calling classes and add
annotations there. This way we can have more precise specifications for the data
and can ask the owners/writers of each file to help.
We are working on a newer structure for partial annotations that I think will
help in better annotation of this code. I pause this CL until we land partial
annotations and will continue updating after that.

Powered by Google App Engine
This is Rietveld 408576698