OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/history/core/browser/web_history_service.h" | 5 #include "components/history/core/browser/web_history_service.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/optional.h" | 14 #include "base/optional.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "components/history/core/browser/history_service_observer.h" | 19 #include "components/history/core/browser/history_service_observer.h" |
20 #include "components/history/core/browser/web_history_service_observer.h" | 20 #include "components/history/core/browser/web_history_service_observer.h" |
21 #include "components/signin/core/browser/signin_manager.h" | 21 #include "components/signin/core/browser/signin_manager.h" |
22 #include "components/sync/driver/sync_util.h" | 22 #include "components/sync/driver/sync_util.h" |
23 #include "components/sync/protocol/history_status.pb.h" | 23 #include "components/sync/protocol/history_status.pb.h" |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 if (success && request->GetResponseCode() == net::HTTP_OK) { | 625 if (success && request->GetResponseCode() == net::HTTP_OK) { |
626 sync_pb::HistoryStatusResponse history_status; | 626 sync_pb::HistoryStatusResponse history_status; |
627 if (history_status.ParseFromString(request->GetResponseBody())) | 627 if (history_status.ParseFromString(request->GetResponseBody())) |
628 has_other_forms_of_browsing_history = history_status.has_derived_data(); | 628 has_other_forms_of_browsing_history = history_status.has_derived_data(); |
629 } | 629 } |
630 | 630 |
631 callback.Run(has_other_forms_of_browsing_history); | 631 callback.Run(has_other_forms_of_browsing_history); |
632 } | 632 } |
633 | 633 |
634 } // namespace history | 634 } // namespace history |
OLD | NEW |