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

Issue 2739033005: Moving previews code from components/ to chrome/ (Closed)

Created:
3 years, 9 months ago by RyanSturm
Modified:
3 years, 9 months ago
Reviewers:
tbansal1
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moving previews code from components/ to chrome/ Allows support for looking in other components or chrome code to verify if a preview is enabled and check the previews version. The layering dynamic is that components such as d_r_p will depend on previews/ and not the other way around, so these methods should be moved to chrome/ and relevant information should be injected. BUG=700459 Review-Url: https://codereview.chromium.org/2739033005 Cr-Commit-Position: refs/heads/master@{#456511} Committed: https://chromium.googlesource.com/chromium/src/+/e69df7ab2555ce8874972c419b13add8e0ec0c32

Patch Set 1 #

Patch Set 2 : switch statement #

Total comments: 16

Patch Set 3 : tbansal nits #

Total comments: 6

Patch Set 4 : tbansal comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -142 lines) Patch
M chrome/browser/previews/previews_service.cc View 1 2 3 2 chunks +51 lines, -1 line 0 comments Download
M components/previews/core/previews_experiments.h View 2 chunks +7 lines, -11 lines 0 comments Download
M components/previews/core/previews_experiments.cc View 1 2 2 chunks +13 lines, -41 lines 0 comments Download
M components/previews/core/previews_experiments_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/previews/core/previews_io_data.h View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M components/previews/core/previews_io_data.cc View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M components/previews/core/previews_io_data_unittest.cc View 4 chunks +28 lines, -15 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql.h View 2 chunks +5 lines, -1 line 0 comments Download
M components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 5 chunks +14 lines, -7 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql_unittest.cc View 13 chunks +49 lines, -52 lines 0 comments Download
M components/previews/core/previews_ui_service.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M components/previews/core/previews_ui_service.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M components/previews/core/previews_ui_service_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (21 generated)
RyanSturm
tbansal: PTAL, the context for this is getting the version and enabled state of LoFi ...
3 years, 9 months ago (2017-03-10 20:21:34 UTC) #10
tbansal1
https://codereview.chromium.org/2739033005/diff/20001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2739033005/diff/20001/chrome/browser/previews/previews_service.cc#newcode24 chrome/browser/previews/previews_service.cc:24: // prohibitvely slow networks is active. This comment looks ...
3 years, 9 months ago (2017-03-10 21:14:53 UTC) #11
RyanSturm
tbansal: PTAL, thanks https://codereview.chromium.org/2739033005/diff/20001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2739033005/diff/20001/chrome/browser/previews/previews_service.cc#newcode24 chrome/browser/previews/previews_service.cc:24: // prohibitvely slow networks is active. ...
3 years, 9 months ago (2017-03-10 22:06:30 UTC) #14
tbansal1
lgtm % comments. https://codereview.chromium.org/2739033005/diff/40001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2739033005/diff/40001/chrome/browser/previews/previews_service.cc#newcode13 chrome/browser/previews/previews_service.cc:13: #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h" rm this include? https://codereview.chromium.org/2739033005/diff/40001/components/previews/core/previews_io_data_unittest.cc ...
3 years, 9 months ago (2017-03-10 23:06:24 UTC) #17
RyanSturm
https://codereview.chromium.org/2739033005/diff/40001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2739033005/diff/40001/chrome/browser/previews/previews_service.cc#newcode13 chrome/browser/previews/previews_service.cc:13: #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h" On 2017/03/10 23:06:23, tbansal1 wrote: > rm ...
3 years, 9 months ago (2017-03-13 21:12:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2739033005/60001
3 years, 9 months ago (2017-03-13 21:13:37 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/e69df7ab2555ce8874972c419b13add8e0ec0c32
3 years, 9 months ago (2017-03-13 22:42:45 UTC) #28
yoichio
3 years, 9 months ago (2017-03-14 06:44:36 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2748033002/ by yoichio@chromium.org.

The reason for reverting is: Builders this step failed on:
Linux Tests [17 since first detection]
 1 test failed:
LoadAndLaunchExtensionBrowserTest.LoadAndLaunchExtension

Since:
https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests/....

Powered by Google App Engine
This is Rietveld 408576698