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

Unified Diff: chrome/browser/android/chrome_application.cc

Issue 1640503003: Remove unused foreground member variable from SB Protocol Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/android/chrome_application.cc
diff --git a/chrome/browser/android/chrome_application.cc b/chrome/browser/android/chrome_application.cc
index 2477ed600bfbab34fe8368c7f147f7f3331667e3..212aa6151befeb2a10f2aaae8f18b41fa193deab 100644
--- a/chrome/browser/android/chrome_application.cc
+++ b/chrome/browser/android/chrome_application.cc
@@ -15,8 +15,6 @@
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/safe_browsing/protocol_manager.h"
-#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/chrome_content_client.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
@@ -68,15 +66,6 @@ void RemoveSessionCookiesForProfile(Profile* profile) {
make_scoped_refptr(profile->GetRequestContext())));
}
-void ChangeAppStatusOnIOThread(safe_browsing::SafeBrowsingService* sb_service,
- jboolean foreground) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
- safe_browsing::SafeBrowsingProtocolManager* proto_manager =
- sb_service->protocol_manager();
- if (proto_manager)
- proto_manager->SetAppInForeground(foreground);
-}
-
} // namespace
static ScopedJavaLocalRef<jstring> GetBrowserUserAgent(
@@ -103,16 +92,6 @@ static void RemoveSessionCookies(JNIEnv* env, const JavaParamRef<jclass>& obj) {
RemoveSessionCookiesForProfile);
}
-static void ChangeAppStatus(JNIEnv* env,
- const JavaParamRef<jclass>& obj,
- jboolean foreground) {
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&ChangeAppStatusOnIOThread,
- base::Unretained(g_browser_process->safe_browsing_service()),
- foreground));
-}
-
namespace chrome {
namespace android {

Powered by Google App Engine
This is Rietveld 408576698