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

Unified Diff: chrome/browser/background_sync/background_sync_controller_impl.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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/background_sync/background_sync_controller_impl.cc
diff --git a/chrome/browser/background_sync/background_sync_controller_impl.cc b/chrome/browser/background_sync/background_sync_controller_impl.cc
index 3720cff5f06715b24f3f7e61c230667d660e180d..b3869882969082d9cc11710602cc64f580acb287 100644
--- a/chrome/browser/background_sync/background_sync_controller_impl.cc
+++ b/chrome/browser/background_sync/background_sync_controller_impl.cc
@@ -8,7 +8,8 @@
#include "base/strings/string_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
-#include "components/rappor/rappor_utils.h"
+#include "components/rappor/public/rappor_utils.h"
+#include "components/rappor/rappor_service_impl.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/background_sync_parameters.h"
@@ -109,7 +110,7 @@ void BackgroundSyncControllerImpl::NotifyBackgroundSyncRegistered(
return;
rappor::SampleDomainAndRegistryFromGURL(
- GetRapporService(), "BackgroundSync.Register.Origin", origin);
+ GetRapporServiceImpl(), "BackgroundSync.Register.Origin", origin);
}
void BackgroundSyncControllerImpl::RunInBackground(bool enabled,
@@ -126,6 +127,7 @@ void BackgroundSyncControllerImpl::RunInBackground(bool enabled,
#endif
}
-rappor::RapporService* BackgroundSyncControllerImpl::GetRapporService() {
+rappor::RapporServiceImpl*
+BackgroundSyncControllerImpl::GetRapporServiceImpl() {
return g_browser_process->rappor_service();
}

Powered by Google App Engine
This is Rietveld 408576698