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

Issue 157813007: Remove Profile dependency from apps::ShellWindow (Closed)

Created:
6 years, 10 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 10 months ago
Reviewers:
tapted, James Cook, benwells
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Remove Profile dependency from apps::ShellWindow Part of the effort to remove src/chrome dependencies from src/{apps, extensions} BUG=341690 TBR=tapted@chromium.org,stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250826

Patch Set 1 #

Patch Set 2 : moar. #

Total comments: 10

Patch Set 3 : nits #

Patch Set 4 : nits #

Patch Set 5 : update some ShellWindow dependants #

Patch Set 6 : fix test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -100 lines) Patch
M apps/app_lifetime_monitor.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M apps/app_shim/app_shim_handler_mac.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac.cc View 1 2 3 4 4 chunks +12 lines, -7 lines 2 comments Download
M apps/app_window_contents.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M apps/app_window_contents.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M apps/shell_window.h View 1 2 7 chunks +11 lines, -7 lines 0 comments Download
M apps/shell_window.cc View 1 2 18 chunks +51 lines, -30 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/ash_panel_contents.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/ash_panel_contents.cc View 1 2 3 4 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/apps/chrome_shell_window_delegate.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/apps/chrome_shell_window_delegate.cc View 6 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_shell_window_launcher_controller.cc View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/apps/native_app_window_gtk.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/apps/native_app_window_gtk.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 2 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views_win.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ken Rockot(use gerrit already)
6 years, 10 months ago (2014-02-12 00:14:11 UTC) #1
James Cook
LGTM with nits. Nice. https://codereview.chromium.org/157813007/diff/40001/apps/app_window_contents.h File apps/app_window_contents.h (right): https://codereview.chromium.org/157813007/diff/40001/apps/app_window_contents.h#newcode20 apps/app_window_contents.h:20: class BrowserContext; totally optional nit: ...
6 years, 10 months ago (2014-02-12 00:46:40 UTC) #2
Ken Rockot(use gerrit already)
Thanks https://codereview.chromium.org/157813007/diff/40001/apps/app_window_contents.h File apps/app_window_contents.h (right): https://codereview.chromium.org/157813007/diff/40001/apps/app_window_contents.h#newcode20 apps/app_window_contents.h:20: class BrowserContext; On 2014/02/12 00:46:41, James Cook wrote: ...
6 years, 10 months ago (2014-02-12 01:05:45 UTC) #3
Ken Rockot(use gerrit already)
Ben, could you please have a look as OWNER?
6 years, 10 months ago (2014-02-12 01:08:47 UTC) #4
benwells
nice, lgtm
6 years, 10 months ago (2014-02-12 05:16:24 UTC) #5
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-12 17:02:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/157813007/150001
6 years, 10 months ago (2014-02-12 17:03:11 UTC) #7
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 10 months ago (2014-02-12 17:36:38 UTC) #8
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-12 20:27:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/157813007/580001
6 years, 10 months ago (2014-02-12 20:29:21 UTC) #10
commit-bot: I haz the power
Change committed as 250826
6 years, 10 months ago (2014-02-12 23:15:37 UTC) #11
tapted
6 years, 10 months ago (2014-02-17 05:25:59 UTC) #12
Message was sent while issue was closed.
Nice CL! my_activity.py told me I was TBR'd so I decided to swing by ;). Left
some comments in case you're doing more around this, but a follow-up isn't
really needed. At some point I think we want src/apps/app_shim to move to
src/chrome/browser/ui/apps/app_shim since it's pretty tied to other browser
things. That is, it might not matter that Profile still has some tendrils in
there.

https://codereview.chromium.org/157813007/diff/580001/apps/app_shim/extension...
File apps/app_shim/extension_app_shim_handler_mac.cc (right):

https://codereview.chromium.org/157813007/diff/580001/apps/app_shim/extension...
apps/app_shim/extension_app_shim_handler_mac.cc:51: void SetAppHidden(Profile*
profile, const std::string& app_id, bool hidden) {
This should be able to take a BrowserContext without issues, cleaning up some of
the call sites

https://codereview.chromium.org/157813007/diff/580001/apps/app_shim/extension...
apps/app_shim/extension_app_shim_handler_mac.cc:241:
Profile::FromBrowserContext(shell_window->browser_context()))
nit: The `FromBrowserContext` cast probably not needed here

Powered by Google App Engine
This is Rietveld 408576698