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

Issue 9618021: Infrastructure to improve app mode stub <-> Chrome main communication. (Closed)

Created:
8 years, 9 months ago by jeremy
Modified:
8 years, 9 months ago
Reviewers:
benwells, sail
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Infrastructure to improve app mode stub <-> Chrome main communication. We currently modify the command line to communicate from the launcher to ChromeMain(), this seems like a bad idea in the long run. The aim of this CL is to provide infrastructure to help us going forward. * Add an IsRunningInAppMode() function we an use to determine that we're using app mode rather than having each callsite check the command line. * Mac: Add a function to allow access to the ChromeAppModeInfo struct from anywhere in the code, so we don't need to plumb it down to individual callsites. TEST=Covered by existing tests. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125302

Patch Set 1 #

Total comments: 1

Patch Set 2 : Another approach #

Total comments: 2

Patch Set 3 : Fix review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac_unittest.mm View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jeremy
8 years, 9 months ago (2012-03-06 19:16:19 UTC) #1
sail
This looks ok but it's hard to tell without seeing the code that uses this. ...
8 years, 9 months ago (2012-03-06 19:26:35 UTC) #2
jeremy
Ready for another look.
8 years, 9 months ago (2012-03-06 23:25:06 UTC) #3
sail
https://chromiumcodereview.appspot.com/9618021/diff/7002/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/9618021/diff/7002/chrome/browser/chrome_browser_main.cc#newcode1276 chrome/browser/chrome_browser_main.cc:1276: (app_mode::IsRunningInAppMode() || Same as last time, can you just ...
8 years, 9 months ago (2012-03-06 23:29:23 UTC) #4
jeremy
Other platforms will need to add calls to SetAppModeInfo() in the appropriate place.
8 years, 9 months ago (2012-03-07 00:39:56 UTC) #5
sail
LGTM!
8 years, 9 months ago (2012-03-07 00:42:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/9618021/1010
8 years, 9 months ago (2012-03-07 00:45:00 UTC) #7
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 02:41:17 UTC) #8
Change committed as 125302

Powered by Google App Engine
This is Rietveld 408576698