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

Unified Diff: chrome/browser/android/offline_pages/test_offline_page_model_builder.cc

Issue 1976163004: [Offline Pages] Adds Rappor metrics measuring what domains are saved & viewed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-store
Patch Set: Created 4 years, 7 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/browser/android/offline_pages/offline_page_tab_helper.cc ('k') | components/offline_pages/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/test_offline_page_model_builder.cc
diff --git a/chrome/browser/android/offline_pages/test_offline_page_model_builder.cc b/chrome/browser/android/offline_pages/test_offline_page_model_builder.cc
index 6641b06ee9edadd1c3cf2991df33f483713f4aee..592071573f55f392d058cc4ec2151bbad336f81b 100644
--- a/chrome/browser/android/offline_pages/test_offline_page_model_builder.cc
+++ b/chrome/browser/android/offline_pages/test_offline_page_model_builder.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/common/chrome_constants.h"
@@ -14,6 +15,10 @@
#include "components/offline_pages/offline_page_test_store.h"
#include "content/public/browser/browser_context.h"
+namespace rappor {
+class RapporService;
+}
+
namespace offline_pages {
std::unique_ptr<KeyedService> BuildTestOfflinePageModel(
@@ -28,7 +33,8 @@ std::unique_ptr<KeyedService> BuildTestOfflinePageModel(
context->GetPath().Append(chrome::kOfflinePageArchviesDirname);
return std::unique_ptr<KeyedService>(new OfflinePageModel(
- std::move(metadata_store), archives_dir, task_runner));
+ std::move(metadata_store), archives_dir,
+ base::WeakPtr<rappor::RapporService>(), task_runner));
}
} // namespace offline_pages
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_tab_helper.cc ('k') | components/offline_pages/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698