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

Issue 2646973003: Fix import legacy, pref based pins. (Closed)

Created:
3 years, 11 months ago by khmel
Modified:
3 years, 11 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix import legacy, pref based pins. This CL contains 2 fixes for importing legacy pref based pins. 1. Import may happen at the moment when profile is not synced yet and in last case it does not actually contain information from previous bulds. 2. Importing ignores apps that currently are not installed. This leads to situation that we loose pin information for such apps and in case apps are installed later they do not appear pinned. Solution is to import all existings apps in prefs. BUG=680821 TEST=Clearn app sync server data. Login on M52 and do some pinning. Next login on M55 and pin additional app. Next login to ToT and observe that pin is restored for existing apps and pins appear automatically once apps are installed later. Review-Url: https://codereview.chromium.org/2646973003 Cr-Commit-Position: refs/heads/master@{#445398} Committed: https://chromium.googlesource.com/chromium/src/+/d8cc9d23b26dc31e050fdc1e2042f639d8a608fa

Patch Set 1 #

Total comments: 2

Patch Set 2 : update unit_tests #

Total comments: 1

Patch Set 3 : "{}" added, nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -32 lines) Patch
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 10 chunks +35 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 5 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 9 chunks +84 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
khmel
Hi Steven, PTAL Thanks!
3 years, 11 months ago (2017-01-20 21:31:35 UTC) #2
stevenjb
The extra dependency between launcher code and sync code is a bit unfortunate, but it ...
3 years, 11 months ago (2017-01-21 00:14:31 UTC) #3
khmel
On 2017/01/21 00:14:31, stevenjb wrote: > The extra dependency between launcher code and sync code ...
3 years, 11 months ago (2017-01-21 01:24:29 UTC) #4
khmel
Hi Steven, Could you please take a look to updated ImportLegacyPins test. Now it is ...
3 years, 11 months ago (2017-01-23 16:54:47 UTC) #9
stevenjb
Thanks for the extra tests. still lgtm
3 years, 11 months ago (2017-01-23 17:01:20 UTC) #10
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/2646973003/40001
3 years, 11 months ago (2017-01-23 17:02:05 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 17:34:55 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d8cc9d23b26dc31e050fdc1e2042...

Powered by Google App Engine
This is Rietveld 408576698