New issue
Advanced search Search tips

Issue 752347 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Aug 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Put back ash::Shell::GetActiveUserPrefService()

Project Member Reported by jamescook@chromium.org, Aug 3 2017

Issue description

I removed it in https://chromium-review.googlesource.com/c/590356 but it turns out to be useful for one-shot lookups of prefs (for example, when spawning a menu) where you don't need to observe the pref for changes.

I have a CL that needs this behavior, so add it back.

 
Summary: Put back ash::Shell::GetActiveUserPrefService() (was: Put back ash::Shell::GetActiveUserProfilePrefs())
Project Member

Comment 2 by bugdroid1@chromium.org, Aug 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6d51c918ac7eef16ba99e0798cb0dd51a50420b9

commit 6d51c918ac7eef16ba99e0798cb0dd51a50420b9
Author: James Cook <jamescook@chromium.org>
Date: Fri Aug 04 01:31:00 2017

cros: Restore ash::Shell::GetActiveUserPrefService

I removed it in https://chromium-review.googlesource.com/c/590356 but I
need it in a new CL.

Also, don't delete the underlying PrefService when switching users
under mash. I now think it's better for the PrefService to be transiently
stale than to be null during the mojo service connection.

Bug:  752347 
Change-Id: Ic35e9a250be04ae7e521fb56f82fb731bc0fb779
Reviewed-on: https://chromium-review.googlesource.com/601329
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491906}
[modify] https://crrev.com/6d51c918ac7eef16ba99e0798cb0dd51a50420b9/ash/shell.cc
[modify] https://crrev.com/6d51c918ac7eef16ba99e0798cb0dd51a50420b9/ash/shell.h

Labels: M-61 Merge-Request-61
Merge request notes: This doesn't change any behavior in M61, but puts back a utility method that I think dependent CLs will use. This should help prevent merge issues for the other patches.

Labels: -Merge-Request-61 Merge-Approved-61
Approving merge to M61 Chrome OS.
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 4 2017

Labels: -merge-approved-61 merge-merged-3163
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a5940013d5bbaf425d710c9a83345ce68f6e045a

commit a5940013d5bbaf425d710c9a83345ce68f6e045a
Author: James Cook <jamescook@chromium.org>
Date: Fri Aug 04 16:58:20 2017

M61 merge: cros: Restore ash::Shell::GetActiveUserPrefService

I removed it in https://chromium-review.googlesource.com/c/590356 but I
need it in a new CL.

Also, don't delete the underlying PrefService when switching users
under mash. I now think it's better for the PrefService to be transiently
stale than to be null during the mojo service connection.

TBR=jamescook@chromium.org

(cherry picked from commit 6d51c918ac7eef16ba99e0798cb0dd51a50420b9)

Bug:  752347 
Change-Id: Ic35e9a250be04ae7e521fb56f82fb731bc0fb779
Reviewed-on: https://chromium-review.googlesource.com/601329
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#491906}
Reviewed-on: https://chromium-review.googlesource.com/602451
Reviewed-by: James Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/branch-heads/3163@{#315}
Cr-Branched-From: ff259bab28b35d242e10186cd63af7ed404fae0d-refs/heads/master@{#488528}
[modify] https://crrev.com/a5940013d5bbaf425d710c9a83345ce68f6e045a/ash/shell.cc
[modify] https://crrev.com/a5940013d5bbaf425d710c9a83345ce68f6e045a/ash/shell.h

Status: Fixed (was: Started)

Comment 7 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment