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

Unified Diff: chrome/app/android/chrome_main_delegate_android.cc

Issue 1940443002: 📤 Upstream SafeBrowsingApiBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 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
« no previous file with comments | « chrome/app/android/chrome_main_delegate_android.h ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/android/chrome_main_delegate_android.cc
diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc
index 3f7d980c278e63e7979d78aca02db23d8ff50bd8..298a8f1d3323209f8653d08d40b0bb3177cbc190 100644
--- a/chrome/app/android/chrome_main_delegate_android.cc
+++ b/chrome/app/android/chrome_main_delegate_android.cc
@@ -13,17 +13,15 @@
#include "base/trace_event/trace_event.h"
#include "chrome/browser/android/chrome_startup_flags.h"
#include "chrome/browser/android/metrics/uma_utils.h"
-#include "chrome/browser/android/metrics/uma_utils.h"
+#include "chrome/browser/android/safe_browsing/safe_browsing_api_handler_bridge.h"
#include "chrome/browser/media/android/remote/remote_media_player_manager.h"
#include "components/policy/core/browser/android/android_combined_policy_provider.h"
+#include "components/safe_browsing_db/safe_browsing_api_handler.h"
#include "components/startup_metric_utils/browser/startup_metric_utils.h"
#include "content/browser/media/android/browser_media_player_manager.h"
#include "content/public/browser/browser_main_runner.h"
-#if defined(SAFE_BROWSING_DB_REMOTE)
-#include "components/safe_browsing_db/safe_browsing_api_handler.h"
using safe_browsing::SafeBrowsingApiHandler;
-#endif
namespace {
@@ -44,10 +42,9 @@ ChromeMainDelegateAndroid::~ChromeMainDelegateAndroid() {
}
bool ChromeMainDelegateAndroid::BasicStartupComplete(int* exit_code) {
-#if defined(SAFE_BROWSING_DB_REMOTE)
- safe_browsing_api_handler_.reset(CreateSafeBrowsingApiHandler());
+ safe_browsing_api_handler_.reset(
+ new safe_browsing::SafeBrowsingApiHandlerBridge());
SafeBrowsingApiHandler::SetInstance(safe_browsing_api_handler_.get());
-#endif
policy::android::AndroidCombinedPolicyProvider::SetShouldWaitForPolicy(true);
SetChromeSpecificCommandLineFlags();
@@ -107,14 +104,5 @@ int ChromeMainDelegateAndroid::RunProcess(
void ChromeMainDelegateAndroid::ProcessExiting(
const std::string& process_type) {
-#if defined(SAFE_BROWSING_DB_REMOTE)
SafeBrowsingApiHandler::SetInstance(nullptr);
-#endif
-}
-
-#if defined(SAFE_BROWSING_DB_REMOTE)
-SafeBrowsingApiHandler*
-ChromeMainDelegateAndroid::CreateSafeBrowsingApiHandler() {
- return nullptr;
}
-#endif
« no previous file with comments | « chrome/app/android/chrome_main_delegate_android.h ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698