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

Issue 2158913002: Make DataUseTabModel and DataUseMatcher more independent (Closed)

Created:
4 years, 5 months ago by Raj
Modified:
4 years, 5 months ago
Reviewers:
tbansal1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DataUseTabModel and DataUseMatcher make more independent Removed DataUseTabModel and ExternalDataUseObserverBridge dependency in DataUseMatcher. Removed ExternalDataUseObserverBridge dependency in DataUseTabModel. This will make it easy for testing. BUG=570884 Committed: https://crrev.com/ed475fbc320e3dec6cb6ab32a6be11c7c444bdf1 Cr-Commit-Position: refs/heads/master@{#406444}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebased, addressed comments, fixed unittests #

Total comments: 12

Patch Set 3 : Addressed comments #

Patch Set 4 : minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -87 lines) Patch
M chrome/browser/android/data_usage/data_use_matcher.h View 1 5 chunks +18 lines, -21 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_matcher.cc View 1 2 4 chunks +15 lines, -18 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_matcher_unittest.cc View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.h View 1 2 4 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.cc View 1 2 3 7 chunks +15 lines, -18 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model_unittest.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_ui_tab_model_unittest.cc View 1 2 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer.cc View 1 2 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/android/data_usage/tab_data_use_entry_unittest.cc View 1 2 3 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Raj
WDYT of the approach of passing around base::Callback instead of direct dependency. Will fix unittests ...
4 years, 5 months ago (2016-07-18 16:23:28 UTC) #3
tbansal1
https://codereview.chromium.org/2158913002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc File chrome/browser/android/data_usage/data_use_matcher.cc (right): https://codereview.chromium.org/2158913002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc#newcode14 chrome/browser/android/data_usage/data_use_matcher.cc:14: #include "base/memory/weak_ptr.h" include not needed anymore. https://codereview.chromium.org/2158913002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc#newcode92 chrome/browser/android/data_usage/data_use_matcher.cc:92: on_matching_rules_fetched_callback_.Run(!matching_rules_.empty()); ...
4 years, 5 months ago (2016-07-18 17:04:38 UTC) #4
Raj
ptal https://codereview.chromium.org/2158913002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc File chrome/browser/android/data_usage/data_use_matcher.cc (right): https://codereview.chromium.org/2158913002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc#newcode14 chrome/browser/android/data_usage/data_use_matcher.cc:14: #include "base/memory/weak_ptr.h" On 2016/07/18 17:04:38, tbansal1 wrote: > ...
4 years, 5 months ago (2016-07-19 00:19:03 UTC) #6
tbansal1
https://codereview.chromium.org/2158913002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.cc File chrome/browser/android/data_usage/data_use_matcher.cc (right): https://codereview.chromium.org/2158913002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.cc#newcode36 chrome/browser/android/data_usage/data_use_matcher.cc:36: DCHECK(on_tracking_label_removed_callback); DCHECK the corresponding local variables. So. DCHECK(on_tracking_label_removed_callback_); https://codereview.chromium.org/2158913002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.cc#newcode89 ...
4 years, 5 months ago (2016-07-19 17:59:32 UTC) #10
Raj
https://codereview.chromium.org/2158913002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.cc File chrome/browser/android/data_usage/data_use_matcher.cc (right): https://codereview.chromium.org/2158913002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.cc#newcode36 chrome/browser/android/data_usage/data_use_matcher.cc:36: DCHECK(on_tracking_label_removed_callback); On 2016/07/19 17:59:31, tbansal1 wrote: > DCHECK the ...
4 years, 5 months ago (2016-07-19 21:29:08 UTC) #14
tbansal1
lgtm
4 years, 5 months ago (2016-07-19 22:51:42 UTC) #17
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/2158913002/60001
4 years, 5 months ago (2016-07-20 00:13:40 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-20 01:39:15 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 01:39:37 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 01:42:30 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ed475fbc320e3dec6cb6ab32a6be11c7c444bdf1
Cr-Commit-Position: refs/heads/master@{#406444}

Powered by Google App Engine
This is Rietveld 408576698