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

Issue 2456803002: Remove OnOptInChanged callback. (Closed)

Created:
4 years, 1 month ago by hidehiko
Modified:
4 years, 1 month ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, extensions-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, khmel+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove OnOptInChanged callback. The callback is used in two different purposes. - Callback in browsertest. This is unused, so just removed. - Trigger to update the badge. The actual trigger timing is opt-in preference change. Replace it by OnOptInEnabled(). BUG=657687 BUG=b/31079732 TEST=Ran on test device. Enable ARC. Install conflict app. Verify the badge. Disable ARC. Verify the badge is disappeared. Committed: https://crrev.com/954755088fb179bb7feb9427ea084eb82daaaaa8 Cr-Commit-Position: refs/heads/master@{#429911}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Reflect the conclusion of offline discussion. #

Patch Set 4 : rebase #

Total comments: 5

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -74 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc View 3 chunks +7 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/extensions/gfx_utils.cc View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h View 1 2 3 4 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc View 1 2 3 chunks +0 lines, -18 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
hidehiko
PTAL: - lhchavez@: c/b/c/arc - skuhne@: c/b/ui/ash/launcher OWNER. - xdai@: original CL author. FYI: khmel@.
4 years, 1 month ago (2016-10-27 07:43:17 UTC) #4
khmel
On 2016/10/27 07:43:17, hidehiko wrote: > PTAL: > - lhchavez@: c/b/c/arc > - skuhne@: c/b/ui/ash/launcher ...
4 years, 1 month ago (2016-10-27 15:32:21 UTC) #7
Mr4D (OOO till 08-26)
c/b/ui/ash/launcher lgtm
4 years, 1 month ago (2016-10-27 15:39:22 UTC) #8
hidehiko
On 2016/10/27 15:32:21, khmel wrote: > On 2016/10/27 07:43:17, hidehiko wrote: > > PTAL: > ...
4 years, 1 month ago (2016-10-27 16:01:56 UTC) #9
khmel
On 2016/10/27 16:01:56, hidehiko wrote: > On 2016/10/27 15:32:21, khmel wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-27 16:06:50 UTC) #10
khmel
On 2016/10/27 16:01:56, hidehiko wrote: > On 2016/10/27 15:32:21, khmel wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-27 16:06:52 UTC) #11
xdai1
On 2016/10/27 16:06:52, khmel wrote: > On 2016/10/27 16:01:56, hidehiko wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 00:13:23 UTC) #12
khmel
On 2016/10/28 00:13:23, xdai1 wrote: > On 2016/10/27 16:06:52, khmel wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 00:18:55 UTC) #13
hidehiko
So, the conclusion is; we do not need the callback, because the badge should be ...
4 years, 1 month ago (2016-11-03 22:54:15 UTC) #17
xiyuan
gfx_utils.cc LGTM
4 years, 1 month ago (2016-11-03 22:57:47 UTC) #18
xdai1
lgtm
4 years, 1 month ago (2016-11-03 23:02:27 UTC) #19
Luis Héctor Chávez
c/b/arc lgtm
4 years, 1 month ago (2016-11-03 23:06:20 UTC) #20
khmel
https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/chromeos/extensions/gfx_utils.cc File chrome/browser/chromeos/extensions/gfx_utils.cc (left): https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/chromeos/extensions/gfx_utils.cc#oldcode199 chrome/browser/chromeos/extensions/gfx_utils.cc:199: if (!arc_auth_service || nit: you might no need #include ...
4 years, 1 month ago (2016-11-03 23:09:17 UTC) #22
khmel
https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h File chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h (left): https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h#oldcode9 chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h:9: #include "chrome/browser/chromeos/arc/arc_auth_service.h" nit: Check if we need this else.
4 years, 1 month ago (2016-11-03 23:10:10 UTC) #23
hidehiko
Good catch, Yury. PTAL. https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/chromeos/extensions/gfx_utils.cc File chrome/browser/chromeos/extensions/gfx_utils.cc (left): https://codereview.chromium.org/2456803002/diff/60001/chrome/browser/chromeos/extensions/gfx_utils.cc#oldcode199 chrome/browser/chromeos/extensions/gfx_utils.cc:199: if (!arc_auth_service || On 2016/11/03 ...
4 years, 1 month ago (2016-11-04 00:04:56 UTC) #24
khmel
lgtm
4 years, 1 month ago (2016-11-04 15:58:07 UTC) #25
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/2456803002/80001
4 years, 1 month ago (2016-11-04 15:59:12 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-04 16:36:13 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 16:41:32 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/954755088fb179bb7feb9427ea084eb82daaaaa8
Cr-Commit-Position: refs/heads/master@{#429911}

Powered by Google App Engine
This is Rietveld 408576698