OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/ntp_snippets/remote/json_request.h" | 5 #include "components/ntp_snippets/remote/json_request.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/time/clock.h" | 17 #include "base/time/clock.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "components/data_use_measurement/core/data_use_user_data.h" | 19 #include "components/data_use_measurement/core/data_use_user_data.h" |
20 #include "components/ntp_snippets/category_info.h" | 20 #include "components/ntp_snippets/category_info.h" |
21 #include "components/ntp_snippets/features.h" | 21 #include "components/ntp_snippets/features.h" |
22 #include "components/ntp_snippets/remote/request_params.h" | 22 #include "components/ntp_snippets/remote/request_params.h" |
23 #include "components/ntp_snippets/user_classifier.h" | 23 #include "components/ntp_snippets/user_classifier.h" |
24 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 24 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
25 #include "components/signin/core/browser/signin_manager.h" | 25 #include "components/signin/core/browser/signin_manager.h" |
26 #include "components/signin/core/browser/signin_manager_base.h" | 26 #include "components/signin/core/browser/signin_manager_base.h" |
| 27 #include "components/strings/grit/components_strings.h" |
27 #include "components/variations/net/variations_http_headers.h" | 28 #include "components/variations/net/variations_http_headers.h" |
28 #include "components/variations/variations_associated_data.h" | 29 #include "components/variations/variations_associated_data.h" |
29 #include "grit/components_strings.h" | |
30 #include "net/base/load_flags.h" | 30 #include "net/base/load_flags.h" |
31 #include "net/http/http_response_headers.h" | 31 #include "net/http/http_response_headers.h" |
32 #include "net/http/http_status_code.h" | 32 #include "net/http/http_status_code.h" |
33 #include "net/url_request/url_fetcher.h" | 33 #include "net/url_request/url_fetcher.h" |
34 #include "net/url_request/url_request_context_getter.h" | 34 #include "net/url_request/url_request_context_getter.h" |
35 #include "third_party/icu/source/common/unicode/uloc.h" | 35 #include "third_party/icu/source/common/unicode/uloc.h" |
36 #include "third_party/icu/source/common/unicode/utypes.h" | 36 #include "third_party/icu/source/common/unicode/utypes.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
38 | 38 |
39 using net::URLFetcher; | 39 using net::URLFetcher; |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 "NewTabPage.Languages.UILanguageRatioInTwoTopLanguages", | 482 "NewTabPage.Languages.UILanguageRatioInTwoTopLanguages", |
483 ratio_ui_in_both_languages * 100); | 483 ratio_ui_in_both_languages * 100); |
484 break; | 484 break; |
485 } | 485 } |
486 } | 486 } |
487 } | 487 } |
488 | 488 |
489 } // namespace internal | 489 } // namespace internal |
490 | 490 |
491 } // namespace ntp_snippets | 491 } // namespace ntp_snippets |
OLD | NEW |