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

Issue 1941713002: Remove most of the dependencies on //chrome/... (Closed)

Created:
4 years, 7 months ago by sfiera
Modified:
4 years, 7 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@g-browser
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove most of the dependencies on //chrome/... Pull them in from the Java bridge. Remaining are SupervisedUserService and FileDownloader. The former will require more non-trivial work, and the latter doesn't really make sense to stub out. Put URLDataSource registration in bridge. It won't fit into a component, and it can only be allowed to happen on Android, because other code is responsible for it on other platforms. It doesn't really belong in either place, but it has to go somewhere for now. BUG=603026 Committed: https://crrev.com/7e952d4bf6eb67eee34c97264eed9d65b323fd75 Cr-Commit-Position: refs/heads/master@{#391556}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -34 lines) Patch
M chrome/browser/android/ntp/most_visited_sites.h View 1 2 3 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/android/ntp/most_visited_sites.cc View 1 2 3 4 8 chunks +27 lines, -30 lines 0 comments Download
M chrome/browser/android/ntp/most_visited_sites_bridge.cc View 3 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
sfiera
4 years, 7 months ago (2016-05-02 11:19:23 UTC) #3
Marc Treib
LGTM https://codereview.chromium.org/1941713002/diff/1/chrome/browser/android/ntp/most_visited_sites.cc File chrome/browser/android/ntp/most_visited_sites.cc (right): https://codereview.chromium.org/1941713002/diff/1/chrome/browser/android/ntp/most_visited_sites.cc#newcode188 chrome/browser/android/ntp/most_visited_sites.cc:188: scoped_observer_(this), mv_source_(SUGGESTIONS_SERVICE), nit: I think we can save ...
4 years, 7 months ago (2016-05-02 11:30:40 UTC) #4
sfiera
I was thinking more, and I realized that the Chromium Way here would be to ...
4 years, 7 months ago (2016-05-03 13:26:12 UTC) #5
Marc Treib
We'll definitely need a factory once we change this to a KeyedService. Before that, and ...
4 years, 7 months ago (2016-05-03 13:32:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941713002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941713002/40001
4 years, 7 months ago (2016-05-04 08:18:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941713002/60001
4 years, 7 months ago (2016-05-04 08:24:41 UTC) #12
sfiera
Marc, is the Android failure transient? I can't tell what's going on there.
4 years, 7 months ago (2016-05-04 09:18:48 UTC) #13
sfiera
Or wait, it looks like it's retrying.
4 years, 7 months ago (2016-05-04 09:19:50 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/64803)
4 years, 7 months ago (2016-05-04 10:08:45 UTC) #16
sfiera
Failed because I hadn't initialized all variables. In general, I probably would have declared: PrefService* ...
4 years, 7 months ago (2016-05-04 16:32:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941713002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941713002/80001
4 years, 7 months ago (2016-05-04 17:01:04 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-04 17:56:47 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/7e952d4bf6eb67eee34c97264eed9d65b323fd75 Cr-Commit-Position: refs/heads/master@{#391556}
4 years, 7 months ago (2016-05-04 17:59:15 UTC) #24
Marc Treib
On 2016/05/04 16:32:59, sfiera wrote: > Failed because I hadn't initialized all variables. In general, ...
4 years, 7 months ago (2016-05-05 16:22:55 UTC) #25
sfiera
4 years, 7 months ago (2016-05-06 07:15:56 UTC) #26
Message was sent while issue was closed.
I think I might have had to rebase before submitting, and resolved a conflict
wrong*, so it could have been after LGTM.

The problem with warnings is that you have to have a really low false positive
rate or else they become noise. I think that -Werror and zero false positives is
the only way to go, but Chromium doesn't set -Werror, does it?

* I prefer one initialization per line, which is a lot easier to merge, but I
know that's not going to happen.

Powered by Google App Engine
This is Rietveld 408576698