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

Unified Diff: chrome/browser/safe_browsing/srt_client_info_win.cc

Issue 2846333003: Chrome cleaner: move Chrome Cleaner files to their own directory (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/srt_client_info_win.cc
diff --git a/chrome/browser/safe_browsing/srt_client_info_win.cc b/chrome/browser/safe_browsing/srt_client_info_win.cc
deleted file mode 100644
index 7506dac8d51bfb3795a31e1ae317c0245d750236..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/srt_client_info_win.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/safe_browsing/srt_client_info_win.h"
-
-#include "base/logging.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_list.h"
-#include "chrome/common/channel_info.h"
-#include "components/safe_browsing_db/safe_browsing_prefs.h"
-#include "components/version_info/version_info.h"
-
-namespace safe_browsing {
-
-namespace {
-
-bool SafeBrowsingExtendedEnabledForBrowser(const Browser* browser) {
- const Profile* profile = browser->profile();
- return profile && !profile->IsOffTheRecord() &&
- IsExtendedReportingEnabled(*profile->GetPrefs());
-}
-
-} // namespace
-
-int ChannelAsInt() {
- switch (chrome::GetChannel()) {
- case version_info::Channel::UNKNOWN:
- return 0;
- case version_info::Channel::CANARY:
- return 1;
- case version_info::Channel::DEV:
- return 2;
- case version_info::Channel::BETA:
- return 3;
- case version_info::Channel::STABLE:
- return 4;
- }
- NOTREACHED();
- return 0;
-}
-
-bool SafeBrowsingExtendedReportingEnabled() {
- BrowserList* browser_list = BrowserList::GetInstance();
- return std::any_of(browser_list->begin_last_active(),
- browser_list->end_last_active(),
- &SafeBrowsingExtendedEnabledForBrowser);
-}
-
-} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/srt_client_info_win.h ('k') | chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698