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

Issue 11968034: Enable profile switching for standalone App Launcher via the Settings App. (Closed)

Created:
7 years, 11 months ago by koz (OOO until 15th September)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, ben+watch_chromium.org, tfarina, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
git://nomatter.syd/chromium/src.git@master
Visibility:
Public.

Description

Enable profile switching for standalone App Launcher via the Settings App. Before: http://i.imgur.com/Cp32FTO.png After: http://i.imgur.com/V1y0XBz.png BUG=166983, 169114, 167094 TEST=Launch chrome with the flag --show-app-list, then switch profiles by launching the settings app and using the "switch user" button. The app list should reappear under the new profile (it's possible to tell profiles apart from what apps are installed).

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 14

Patch Set 3 : respond to comments #

Total comments: 30

Patch Set 4 : track pending profile loads, respond to comments #

Total comments: 8

Patch Set 5 : respond to comments #

Total comments: 10

Patch Set 6 : respond to comments #

Patch Set 7 : nits #

Patch Set 8 : respond to comments #

Total comments: 20

Patch Set 9 : respond to comments #

Total comments: 13

Patch Set 10 : respond to comments #

Total comments: 2

Patch Set 11 : private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -105 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +36 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_default.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_page.js View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_settings_app.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +81 lines, -10 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_util.h View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_util.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 5 6 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 1 chunk +14 lines, -18 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +236 lines, -37 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
koz (OOO until 15th September)
7 years, 11 months ago (2013-01-17 03:42:55 UTC) #1
tapted
https://codereview.chromium.org/11968034/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/11968034/diff/1/chrome/browser/profiles/profile_manager.cc#newcode335 chrome/browser/profiles/profile_manager.cc:335: app_list_profile_dir.AppendASCII(chrome::kInitialProfile) : Should this (as an extra step) first ...
7 years, 11 months ago (2013-01-17 04:23:30 UTC) #2
benwells
Does this work if Chrome / the app list is already running? It seems like ...
7 years, 11 months ago (2013-01-17 04:30:29 UTC) #3
koz (OOO until 15th September)
I've made the startup profile loading code smarter and refactored the AppListController's logic a bit. ...
7 years, 11 months ago (2013-01-18 05:37:33 UTC) #4
benwells
Some initial comments... https://codereview.chromium.org/11968034/diff/8001/chrome/browser/ui/app_list/app_list_util.cc File chrome/browser/ui/app_list/app_list_util.cc (right): https://codereview.chromium.org/11968034/diff/8001/chrome/browser/ui/app_list/app_list_util.cc#newcode16 chrome/browser/ui/app_list/app_list_util.cc:16: } // namespace app_list_controller Nit: app_list_controller->chrome ...
7 years, 11 months ago (2013-01-18 06:18:45 UTC) #5
koz (OOO until 15th September)
https://codereview.chromium.org/11968034/diff/8001/chrome/browser/ui/app_list/app_list_util.cc File chrome/browser/ui/app_list/app_list_util.cc (right): https://codereview.chromium.org/11968034/diff/8001/chrome/browser/ui/app_list/app_list_util.cc#newcode16 chrome/browser/ui/app_list/app_list_util.cc:16: } // namespace app_list_controller On 2013/01/18 06:18:46, benwells wrote: ...
7 years, 11 months ago (2013-01-20 23:32:00 UTC) #6
benwells
I think just quibbles now... https://codereview.chromium.org/11968034/diff/17001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/11968034/diff/17001/chrome/browser/profiles/profile_manager.cc#newcode847 chrome/browser/profiles/profile_manager.cc:847: prefs->RegisterStringPref(prefs::kAppListProfile, ""); Should this ...
7 years, 11 months ago (2013-01-21 00:36:31 UTC) #7
tapted
https://codereview.chromium.org/11968034/diff/17001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/11968034/diff/17001/chrome/browser/profiles/profile_manager.cc#newcode1083 chrome/browser/profiles/profile_manager.cc:1083: nit: an extra line has crept in https://codereview.chromium.org/11968034/diff/17001/chrome/browser/ui/app_list/app_list_controller_delegate.h File ...
7 years, 11 months ago (2013-01-21 00:37:02 UTC) #8
tapted
https://codereview.chromium.org/11968034/diff/17001/chrome/browser/ui/app_list/app_list_controller_delegate.h File chrome/browser/ui/app_list/app_list_controller_delegate.h (right): https://codereview.chromium.org/11968034/diff/17001/chrome/browser/ui/app_list/app_list_controller_delegate.h#newcode71 chrome/browser/ui/app_list/app_list_controller_delegate.h:71: void InitAppList(Profile* default_profile); On 2013/01/21 00:36:31, benwells wrote: > ...
7 years, 11 months ago (2013-01-21 00:41:13 UTC) #9
koz (OOO until 15th September)
I added some code to keep the browser alive while we are asynchronously loading a ...
7 years, 11 months ago (2013-01-21 23:23:15 UTC) #10
benwells
lgtm with a couple of comments. https://codereview.chromium.org/11968034/diff/22002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/11968034/diff/22002/chrome/browser/prefs/browser_prefs.cc#newcode62 chrome/browser/prefs/browser_prefs.cc:62: #include "chrome/browser/ui/app_list/app_list_util.h" Nit: ...
7 years, 11 months ago (2013-01-22 01:21:58 UTC) #11
koz (OOO until 15th September)
https://codereview.chromium.org/11968034/diff/22002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/11968034/diff/22002/chrome/browser/prefs/browser_prefs.cc#newcode62 chrome/browser/prefs/browser_prefs.cc:62: #include "chrome/browser/ui/app_list/app_list_util.h" On 2013/01/22 01:21:59, benwells wrote: > Nit: ...
7 years, 11 months ago (2013-01-22 02:23:49 UTC) #12
koz (OOO until 15th September)
+sky for OWNERS, in particular the changes to loading profiles at startup.
7 years, 11 months ago (2013-01-22 02:28:11 UTC) #13
tapted
+estade for webui changes and OWNERS in /c/b/resources/options - he helped with the earlier changes ...
7 years, 11 months ago (2013-01-22 03:01:08 UTC) #14
sky
Please elaborate on this. Are you saying we're going to start loading all profiles at ...
7 years, 11 months ago (2013-01-22 15:55:25 UTC) #15
tapted
On 2013/01/22 15:55:25, sky wrote: > Please elaborate on this. Are you saying we're going ...
7 years, 11 months ago (2013-01-22 16:11:26 UTC) #16
sky
Ok, can you clarify what files in here you need me to look at?
7 years, 11 months ago (2013-01-22 16:15:21 UTC) #17
tapted
On 2013/01/22 16:15:21, sky wrote: > Ok, can you clarify what files in here you ...
7 years, 11 months ago (2013-01-22 17:12:41 UTC) #18
tfarina
On Tue, Jan 22, 2013 at 3:12 PM, <tapted@chromium.org> wrote: > @koz: I don't think ...
7 years, 11 months ago (2013-01-22 17:17:12 UTC) #19
sky
LGTM - as Thiago says Xiyuan should revie the app_list changes. https://codereview.chromium.org/11968034/diff/24028/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): ...
7 years, 11 months ago (2013-01-22 23:56:18 UTC) #20
koz (OOO until 15th September)
Great, thanks a million, Trent! I've added sail@ for profile_manager.{h,cc} changes. https://codereview.chromium.org/11968034/diff/22002/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): ...
7 years, 11 months ago (2013-01-23 00:07:55 UTC) #21
xiyuan
LGTM https://codereview.chromium.org/11968034/diff/24028/chrome/browser/ui/app_list/app_list_controller_delegate.h File chrome/browser/ui/app_list/app_list_controller_delegate.h (right): https://codereview.chromium.org/11968034/diff/24028/chrome/browser/ui/app_list/app_list_controller_delegate.h#newcode12 chrome/browser/ui/app_list/app_list_controller_delegate.h:12: class FilePath; nit: seems not used https://codereview.chromium.org/11968034/diff/24028/chrome/browser/ui/app_list/app_list_view_delegate.cc File ...
7 years, 11 months ago (2013-01-23 00:09:33 UTC) #22
Evan Stade
https://codereview.chromium.org/11968034/diff/24028/chrome/browser/resources/options/options_settings_app.js File chrome/browser/resources/options/options_settings_app.js (right): https://codereview.chromium.org/11968034/diff/24028/chrome/browser/resources/options/options_settings_app.js#newcode9 chrome/browser/resources/options/options_settings_app.js:9: document.documentElement.classList.add('settings-app'); move this to OptionsPage.setIsSettingsApp. Also, don't have 2 ...
7 years, 11 months ago (2013-01-23 00:16:21 UTC) #23
koz (OOO until 15th September)
Ta! https://codereview.chromium.org/11968034/diff/24028/chrome/browser/ui/app_list/app_list_controller_delegate.h File chrome/browser/ui/app_list/app_list_controller_delegate.h (right): https://codereview.chromium.org/11968034/diff/24028/chrome/browser/ui/app_list/app_list_controller_delegate.h#newcode12 chrome/browser/ui/app_list/app_list_controller_delegate.h:12: class FilePath; On 2013/01/23 00:09:33, xiyuan wrote: > ...
7 years, 11 months ago (2013-01-23 00:16:43 UTC) #24
koz (OOO until 15th September)
https://codereview.chromium.org/11968034/diff/24028/chrome/browser/resources/options/options_settings_app.js File chrome/browser/resources/options/options_settings_app.js (right): https://codereview.chromium.org/11968034/diff/24028/chrome/browser/resources/options/options_settings_app.js#newcode9 chrome/browser/resources/options/options_settings_app.js:9: document.documentElement.classList.add('settings-app'); On 2013/01/23 00:16:21, Evan Stade wrote: > move ...
7 years, 11 months ago (2013-01-23 02:58:58 UTC) #25
sail
This CL needs: - tests - links to screenshots for all UI changes - remove ...
7 years, 11 months ago (2013-01-23 16:55:24 UTC) #26
Evan Stade
lgtm https://codereview.chromium.org/11968034/diff/21005/chrome/browser/resources/options/options_page.js File chrome/browser/resources/options/options_page.js (right): https://codereview.chromium.org/11968034/diff/21005/chrome/browser/resources/options/options_page.js#newcode48 chrome/browser/resources/options/options_page.js:48: OptionsPage.settingsApp_ = false; remove https://codereview.chromium.org/11968034/diff/21005/chrome/browser/ui/webui/options/manage_profile_handler.h File chrome/browser/ui/webui/options/manage_profile_handler.h (right): ...
7 years, 11 months ago (2013-01-23 22:18:33 UTC) #27
koz (OOO until 15th September)
https://codereview.chromium.org/11968034/diff/21005/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/11968034/diff/21005/chrome/browser/chrome_browser_main.cc#newcode329 chrome/browser/chrome_browser_main.cc:329: if (command_line.HasSwitch(switches::kShowAppList)) On 2013/01/23 16:55:24, sail wrote: > why ...
7 years, 11 months ago (2013-01-25 00:32:46 UTC) #28
sail
Looks good overall. Still needs links to screenshots in CL description. Also, you need tests ...
7 years, 11 months ago (2013-01-25 18:22:34 UTC) #29
tapted
https://codereview.chromium.org/11968034/diff/32027/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/11968034/diff/32027/chrome/browser/prefs/browser_prefs.cc#newcode225 chrome/browser/prefs/browser_prefs.cc:225: #if defined(ENABLE_APP_LIST) This will be true on CrOS, so ...
7 years, 11 months ago (2013-01-26 01:10:08 UTC) #30
Alexei Svitkine (slow)
Should this have a TEST= line?
7 years, 10 months ago (2013-01-28 19:00:34 UTC) #31
koz (OOO until 15th September)
Thanks for the link sail. I ended up adding another browser_test to test the profile ...
7 years, 10 months ago (2013-01-29 00:34:11 UTC) #32
sail
Code looks good to me. > (I can't seem to hotlink directly to attachments on ...
7 years, 10 months ago (2013-01-29 18:28:55 UTC) #33
koz (OOO until 15th September)
On 2013/01/29 18:28:55, sail wrote: > Code looks good to me. > > > (I ...
7 years, 10 months ago (2013-01-29 22:58:50 UTC) #34
koz (OOO until 15th September)
https://codereview.chromium.org/11968034/diff/42001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://codereview.chromium.org/11968034/diff/42001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode82 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:82: DISALLOW_COPY_AND_ASSIGN(ShowAppListBrowserTest); On 2013/01/29 18:28:56, sail wrote: > private: Done.
7 years, 10 months ago (2013-01-29 22:59:02 UTC) #35
sail
On 2013/01/29 22:58:50, koz wrote: > On 2013/01/29 18:28:55, sail wrote: > > Code looks ...
7 years, 10 months ago (2013-01-29 23:05:10 UTC) #36
koz (OOO until 15th September)
On 2013/01/29 23:05:10, sail wrote: > On 2013/01/29 22:58:50, koz wrote: > > On 2013/01/29 ...
7 years, 10 months ago (2013-01-29 23:27:19 UTC) #37
sail
> Yep, done. The multi-user UI doesn't really make sense. Why would you want the ...
7 years, 10 months ago (2013-01-29 23:33:55 UTC) #38
sail
On 2013/01/29 23:33:55, sail wrote: > > Yep, done. > > The multi-user UI doesn't ...
7 years, 10 months ago (2013-01-29 23:39:46 UTC) #39
sail
Ok, we had a bunch of discussion about this in person. The conclusion was: - ...
7 years, 10 months ago (2013-01-30 01:15:33 UTC) #40
sail
7 years, 10 months ago (2013-01-30 01:15:44 UTC) #41
LGTM

Powered by Google App Engine
This is Rietveld 408576698