| 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 "chrome/browser/safe_browsing/srt_client_info_win.h" | 5 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
| 11 #include "chrome/common/channel_info.h" | 11 #include "chrome/common/channel_info.h" |
| 12 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 12 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
| 13 #include "components/version_info/version_info.h" | 13 #include "components/version_info/version_info.h" |
| 14 | 14 |
| 15 namespace safe_browsing { | 15 namespace safe_browsing { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool SafeBrowsingExtendedReportingEnabled() { | 44 bool SafeBrowsingExtendedReportingEnabled() { |
| 45 BrowserList* browser_list = BrowserList::GetInstance(); | 45 BrowserList* browser_list = BrowserList::GetInstance(); |
| 46 return std::any_of(browser_list->begin_last_active(), | 46 return std::any_of(browser_list->begin_last_active(), |
| 47 browser_list->end_last_active(), | 47 browser_list->end_last_active(), |
| 48 &SafeBrowsingExtendedEnabledForBrowser); | 48 &SafeBrowsingExtendedEnabledForBrowser); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace safe_browsing | 51 } // namespace safe_browsing |
| OLD | NEW |