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

Issue 2683613002: Get rid of sync_preferences::SyncedPrefObserver inheritance. (Closed)

Created:
3 years, 10 months ago by hidehiko
Modified:
3 years, 10 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org, dspaid, khmel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of sync_preferences::SyncedPrefObserver inheritance. ArcSessionManager inherits SyncedPrefObserver, but it is not used now, because kArcEnabled is not sync pref. The callback is called from OnOptInPreferenceChanged() only, so this CL inlines the function to there. This is preparation to extract preference handling from ArcSessionManager into a dedicated class. BUG=657687 BUG=b/31079732 TEST=Ran bots. Made sure "removing pinned icon from shelf" works manually. Review-Url: https://codereview.chromium.org/2683613002 Cr-Commit-Position: refs/heads/master@{#448878} Committed: https://chromium.googlesource.com/chromium/src/+/32e8ee260dfbd9c3da830f2c9cde9eddadfaf40f

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -38 lines) Patch
M chrome/browser/chromeos/arc/arc_session_manager.h View 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 5 chunks +15 lines, -30 lines 1 comment Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
hidehiko
PTAL.
3 years, 10 months ago (2017-02-07 14:03:50 UTC) #6
hidehiko
https://codereview.chromium.org/2683613002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (left): https://codereview.chromium.org/2683613002/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc#oldcode458 chrome/browser/chromeos/arc/arc_session_manager.cc:458: if (IsArcEnabled()) Note: according to https://codereview.chromium.org/1854463002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode231, this was workaround ...
3 years, 10 months ago (2017-02-07 14:05:37 UTC) #7
Luis Héctor Chávez
lgtm
3 years, 10 months ago (2017-02-07 16:35:41 UTC) #8
Mr4D (OOO till 08-26)
lgtm
3 years, 10 months ago (2017-02-07 16:59:23 UTC) #9
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/2683613002/1
3 years, 10 months ago (2017-02-08 02:50:06 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 02:57:31 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/32e8ee260dfbd9c3da830f2c9cde...

Powered by Google App Engine
This is Rietveld 408576698