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

Issue 1772273002: Remove one thread hop while fetching matching rules (Closed)

Created:
4 years, 9 months ago by Raj
Modified:
4 years, 9 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

Remove one thread hop while fetching matching rules When matching rules are fetched in DataUseTabModel, it involves one thread hop from UI thread to ExternalDataUseObserver in the IO thread. Remove this thread hop by DataUseTabModel directly having a pointer to the ExternalDataUseObserverBridge. BUG=586235 Committed: https://crrev.com/f2143600e425715839c76794abcf5021f4ca8e1b Cr-Commit-Position: refs/heads/master@{#380460}

Patch Set 1 #

Total comments: 30

Patch Set 2 : Addressed comments #

Total comments: 11

Patch Set 3 : Addressed tbansal comments #

Total comments: 4

Patch Set 4 : Addressed comments #

Total comments: 1

Patch Set 5 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -120 lines) Patch
M chrome/browser/android/data_usage/data_use_matcher.h View 1 2 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_matcher.cc View 1 4 chunks +7 lines, -20 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_matcher_unittest.cc View 1 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.h View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model_unittest.cc View 1 3 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_ui_tab_model_unittest.cc View 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer.h View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer.cc View 1 2 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer_bridge.h View 1 2 3 4 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer_bridge.cc View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer_unittest.cc View 1 2 2 chunks +50 lines, -38 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Raj
PTAL. I will add new unittests specific to new changes. https://codereview.chromium.org/1772273002/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/1772273002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc#newcode28 ...
4 years, 9 months ago (2016-03-08 06:33:07 UTC) #2
tbansal1
https://codereview.chromium.org/1772273002/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/1772273002/diff/1/chrome/browser/android/data_usage/data_use_matcher.cc#newcode28 chrome/browser/android/data_usage/data_use_matcher.cc:28: const ExternalDataUseObserverBridge* external_data_use_observer_bridge, On 2016/03/08 06:33:07, Raj wrote: > ...
4 years, 9 months ago (2016-03-08 18:15:01 UTC) #3
Raj
Thanks for taking a look. This CL is for removing one thread hop while fetching ...
4 years, 9 months ago (2016-03-09 02:27:36 UTC) #5
tbansal1
https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h File chrome/browser/android/data_usage/data_use_matcher.h (right): https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h#newcode142 chrome/browser/android/data_usage/data_use_matcher.h:142: // destroyed in the order. s/the/that/ May be add ...
4 years, 9 months ago (2016-03-10 01:00:58 UTC) #6
Raj
https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h File chrome/browser/android/data_usage/data_use_matcher.h (right): https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h#newcode142 chrome/browser/android/data_usage/data_use_matcher.h:142: // destroyed in the order. On 2016/03/10 01:00:57, tbansal1 ...
4 years, 9 months ago (2016-03-10 02:13:34 UTC) #7
tbansal1
On 2016/03/10 02:13:34, Raj wrote: > https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h > File chrome/browser/android/data_usage/data_use_matcher.h (right): > > https://codereview.chromium.org/1772273002/diff/20001/chrome/browser/android/data_usage/data_use_matcher.h#newcode142 > ...
4 years, 9 months ago (2016-03-10 17:32:04 UTC) #8
tbansal1
https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.cc File chrome/browser/android/data_usage/external_data_use_observer_bridge.cc (right): https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.cc#newcode175 chrome/browser/android/data_usage/external_data_use_observer_bridge.cc:175: data_use_tab_model_->OnControlAppInstallStateChange(is_control_app_installed); Add: if(!data_use_tab_model_) return; https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.h File chrome/browser/android/data_usage/external_data_use_observer_bridge.h (right): https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.h#newcode109 ...
4 years, 9 months ago (2016-03-10 17:44:55 UTC) #9
Raj
https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.cc File chrome/browser/android/data_usage/external_data_use_observer_bridge.cc (right): https://codereview.chromium.org/1772273002/diff/40001/chrome/browser/android/data_usage/external_data_use_observer_bridge.cc#newcode175 chrome/browser/android/data_usage/external_data_use_observer_bridge.cc:175: data_use_tab_model_->OnControlAppInstallStateChange(is_control_app_installed); On 2016/03/10 17:44:55, tbansal1 wrote: > Add: > ...
4 years, 9 months ago (2016-03-10 18:30:11 UTC) #10
tbansal1
lgtm % two nits. One below. And, second: The CL title needs to be updated ...
4 years, 9 months ago (2016-03-10 19:37:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772273002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772273002/80001
4 years, 9 months ago (2016-03-10 19:50:35 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-10 20:56:33 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 20:58:42 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f2143600e425715839c76794abcf5021f4ca8e1b
Cr-Commit-Position: refs/heads/master@{#380460}

Powered by Google App Engine
This is Rietveld 408576698