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

Issue 586613002: Remove AppsClient::GetLoadedBrowserContexts (Closed)

Created:
6 years, 3 months ago by hashimoto
Modified:
6 years, 2 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, benquan, tfarina, Dane Wallinga, dyu1, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, James Cook, oshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove AppsClient::GetLoadedBrowserContexts Move GetAppWindowForNativeWindowAnyProfile(), IsAppWindowRegisteredInAnyProfile(), CloseAllAppWindows() from extensions::AppWindowRegistry to a new class AppWindowRegistryUtil. These functions are only needed by chrome. Also, putting these functions in chrome/browser/apps allows them to get the loaded profiles directly from ProfileManager rather than requiring the AppsClient::GetLoadedBrowserContexts delegate method. BUG=411352 TBR=sky@chromium.org for include fix & class rename under chrome/browser Committed: https://crrev.com/c350c3cd2a6ae2fb9f9bca512f596fb8ef7ab79b Cr-Commit-Position: refs/heads/master@{#296886}

Patch Set 1 : #

Total comments: 1

Patch Set 2 : rebase #

Patch Set 3 : Move to chrome/browser/apps #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -169 lines) Patch
M athena/extensions/chrome/athena_chrome_app_window_client.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M athena/extensions/chrome/athena_chrome_app_window_client.cc View 1 2 chunks +0 lines, -11 lines 0 comments Download
M athena/extensions/shell/athena_shell_app_window_client.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M athena/extensions/shell/athena_shell_app_window_client.cc View 1 1 chunk +1 line, -10 lines 0 comments Download
M athena/extensions/shell/extensions_delegate_impl.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/apps/app_shim/app_shim_handler_mac.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/apps/app_window_registry_util.h View 1 2 1 chunk +30 lines, -0 lines 2 comments Download
A chrome/browser/apps/app_window_registry_util.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/ui/apps/apps_metro_handler_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.cc View 1 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac_interactive_uitest.cc View 1 2 6 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window_client.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M extensions/browser/app_window/app_window_registry.h View 1 chunk +0 lines, -12 lines 0 comments Download
M extensions/browser/app_window/app_window_registry.cc View 1 2 chunks +0 lines, -71 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
hashimoto
tapted@, could you review this change as an owner of apps directories?
6 years, 3 months ago (2014-09-19 05:53:32 UTC) #3
tapted
Is app_shim_handler_mac.cc the only reason why app_window_registry_util.cc needs to be in src/apps rather than chrome/browser/apps? ...
6 years, 3 months ago (2014-09-19 07:59:03 UTC) #4
hashimoto
On 2014/09/19 07:59:03, tapted wrote: > Is app_shim_handler_mac.cc the only reason why app_window_registry_util.cc needs > ...
6 years, 3 months ago (2014-09-19 08:37:13 UTC) #5
hashimoto
Thank you for moving app_shim code to chrome/browser/apps! Uploaded a new patch set which adds ...
6 years, 2 months ago (2014-09-25 05:07:26 UTC) #6
tapted
lgtm The CL description need an update (it's no longer apps::AppWindowRegistryUtil) But I would also ...
6 years, 2 months ago (2014-09-25 05:47:34 UTC) #7
hashimoto
https://codereview.chromium.org/586613002/diff/60001/chrome/browser/apps/app_window_registry_util.h File chrome/browser/apps/app_window_registry_util.h (right): https://codereview.chromium.org/586613002/diff/60001/chrome/browser/apps/app_window_registry_util.h#newcode15 chrome/browser/apps/app_window_registry_util.h:15: class AppWindowRegistryUtil { On 2014/09/25 05:47:34, tapted wrote: > ...
6 years, 2 months ago (2014-09-25 06:51:55 UTC) #8
tapted
On 2014/09/25 06:51:55, hashimoto wrote: > https://codereview.chromium.org/586613002/diff/60001/chrome/browser/apps/app_window_registry_util.h > File chrome/browser/apps/app_window_registry_util.h (right): > > https://codereview.chromium.org/586613002/diff/60001/chrome/browser/apps/app_window_registry_util.h#newcode15 > ...
6 years, 2 months ago (2014-09-25 07:07:29 UTC) #9
hashimoto
OK, then let's go ahead with the AppWindowRegistryUtil class. Thanks! On Thu, Sep 25, 2014 ...
6 years, 2 months ago (2014-09-25 07:27:29 UTC) #10
hashimoto
oshima@: Please review this change as an owner of athena. rockot@: Please review this change ...
6 years, 2 months ago (2014-09-25 07:28:11 UTC) #12
Ken Rockot(use gerrit already)
lgtm
6 years, 2 months ago (2014-09-25 17:14:32 UTC) #13
oshima
athena/ lgtm
6 years, 2 months ago (2014-09-25 17:27:50 UTC) #14
hashimoto
TBRing sky@chromium.org for include fix & class rename under chrome/browser
6 years, 2 months ago (2014-09-26 04:46:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/586613002/60001
6 years, 2 months ago (2014-09-26 04:47:07 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:60001) as d31c468af9fd7b29132fbeb4e4bb9a072d66b1c8
6 years, 2 months ago (2014-09-26 04:51:44 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 04:52:17 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c350c3cd2a6ae2fb9f9bca512f596fb8ef7ab79b
Cr-Commit-Position: refs/heads/master@{#296886}

Powered by Google App Engine
This is Rietveld 408576698