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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc

Issue 1221663009: Expose API to store and load data usage stats from UI task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Breakdown
Patch Set: Add missing Pass. Created 5 years, 5 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/renderer_context_menu/render_view_context_menu_unittest.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
index b3a2c10daea0d509d65820af5aaefed65ec43e95..a08af4006404c73bb350a86d986c2d3f7e923994 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc
@@ -23,6 +23,7 @@
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
+#include "components/data_reduction_proxy/core/browser/data_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
@@ -390,6 +391,8 @@ class RenderViewContextMenuPrefsTest : public ChromeRenderViewHostTestHarness {
settings->InitDataReductionProxySettings(
drp_test_context_->io_data(), drp_test_context_->pref_service(),
drp_test_context_->request_context_getter(),
+ make_scoped_ptr(new data_reduction_proxy::DataStore()).Pass(),
+ base::ThreadTaskRunnerHandle::Get(),
base::ThreadTaskRunnerHandle::Get());
jeremyim 2015/07/13 20:19:40 It would be nice (but not necessary) if more of th
Not at Google. Contact bengr 2015/07/14 16:41:30 It seems confusing to have 2 settings objects, so
jeremyim 2015/07/14 22:39:54 I'm not looking for reduction in total code lines;
Not at Google. Contact bengr 2015/07/15 00:08:17 Sounds good. I'll do this in a separate cl.
Not at Google. Contact bengr 2015/07/15 22:34:09 Jeremy: I investigated this further. Moving initia
}

Powered by Google App Engine
This is Rietveld 408576698