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

Issue 9423048: Add user data dir field to Mac platform apps (Closed)

Created:
8 years, 10 months ago by sail
Modified:
8 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add user data dir field to Mac platform apps With this CL we now specify an explicit data dir for Mac platform apps. This CL also cleans up the various GetDataDir* functions in web_app.h. BUG=112651 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123439

Patch Set 1 #

Patch Set 2 : fix app-id #

Patch Set 3 : fix typo #

Total comments: 14

Patch Set 4 : address review comments #

Total comments: 6

Patch Set 5 : address review comments #

Total comments: 4

Patch Set 6 : address review comments #

Total comments: 2

Patch Set 7 : address review comments #

Patch Set 8 : address review comments #

Patch Set 9 : fix build error #

Patch Set 10 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -61 lines) Patch
M chrome/app/app_mode_loader_mac.mm View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_app_mode_mac.mm View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/web_applications/web_app_ui.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app.h View 1 2 3 4 3 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 6 chunks +37 lines, -41 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac_unittest.mm View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app_unittest.cc View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sail
To make things easier to review I've split the "separate data directory" patch into two ...
8 years, 10 months ago (2012-02-21 00:06:43 UTC) #1
jeremy
Is the correct terminology "data directory" or "profile directory"? If it's "profile directory" then the ...
8 years, 10 months ago (2012-02-21 12:17:59 UTC) #2
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/9423048/diff/25/chrome/browser/web_applications/web_app.h File chrome/browser/web_applications/web_app.h (right): https://chromiumcodereview.appspot.com/9423048/diff/25/chrome/browser/web_applications/web_app.h#newcode23 chrome/browser/web_applications/web_app.h:23: const std::string& extension_id, Rather than the two overloaded variants ...
8 years, 10 months ago (2012-02-21 20:53:21 UTC) #3
sail
https://chromiumcodereview.appspot.com/9423048/diff/25/chrome/browser/web_applications/web_app.h File chrome/browser/web_applications/web_app.h (right): https://chromiumcodereview.appspot.com/9423048/diff/25/chrome/browser/web_applications/web_app.h#newcode23 chrome/browser/web_applications/web_app.h:23: const std::string& extension_id, On 2012/02/21 20:53:21, Mihai Parparita wrote: ...
8 years, 10 months ago (2012-02-22 22:10:08 UTC) #4
sail
On 2012/02/21 12:17:59, jeremy wrote: > Is the correct terminology "data directory" or "profile directory"? ...
8 years, 10 months ago (2012-02-22 22:11:41 UTC) #5
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/9423048/diff/9001/chrome/browser/web_applications/web_app.h File chrome/browser/web_applications/web_app.h (right): https://chromiumcodereview.appspot.com/9423048/diff/9001/chrome/browser/web_applications/web_app.h#newcode21 chrome/browser/web_applications/web_app.h:21: // Returns data directory for given web app. ...
8 years, 10 months ago (2012-02-22 23:24:15 UTC) #6
sail
https://chromiumcodereview.appspot.com/9423048/diff/9001/chrome/browser/web_applications/web_app.h File chrome/browser/web_applications/web_app.h (right): https://chromiumcodereview.appspot.com/9423048/diff/9001/chrome/browser/web_applications/web_app.h#newcode21 chrome/browser/web_applications/web_app.h:21: // Returns data directory for given web app. The ...
8 years, 10 months ago (2012-02-22 23:38:48 UTC) #7
Robert Sesek
lgtm with nits https://chromiumcodereview.appspot.com/9423048/diff/8003/chrome/browser/web_applications/web_app_mac.h File chrome/browser/web_applications/web_app_mac.h (right): https://chromiumcodereview.appspot.com/9423048/diff/8003/chrome/browser/web_applications/web_app_mac.h#newcode25 chrome/browser/web_applications/web_app_mac.h:25: // The shortcut store its data ...
8 years, 10 months ago (2012-02-23 01:30:43 UTC) #8
sail
https://chromiumcodereview.appspot.com/9423048/diff/8003/chrome/browser/web_applications/web_app_mac.h File chrome/browser/web_applications/web_app_mac.h (right): https://chromiumcodereview.appspot.com/9423048/diff/8003/chrome/browser/web_applications/web_app_mac.h#newcode25 chrome/browser/web_applications/web_app_mac.h:25: // The shortcut store its data directory in |data_dir|. ...
8 years, 10 months ago (2012-02-23 03:00:41 UTC) #9
jeremy
Thanks for the clarification - can you add a comment in the code explaining the ...
8 years, 10 months ago (2012-02-23 13:27:54 UTC) #10
jeremy
lgtm after adding comment per separate email. https://chromiumcodereview.appspot.com/9423048/diff/15002/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://chromiumcodereview.appspot.com/9423048/diff/15002/chrome/app/app_mode_loader_mac.mm#newcode95 chrome/app/app_mode_loader_mac.mm:95: info->user_data_dir = ...
8 years, 10 months ago (2012-02-23 13:30:54 UTC) #11
sail
https://chromiumcodereview.appspot.com/9423048/diff/15002/chrome/app/app_mode_loader_mac.mm File chrome/app/app_mode_loader_mac.mm (right): https://chromiumcodereview.appspot.com/9423048/diff/15002/chrome/app/app_mode_loader_mac.mm#newcode95 chrome/app/app_mode_loader_mac.mm:95: info->user_data_dir = base::mac::NSStringToFilePath( On 2012/02/23 13:30:54, jeremy wrote: > ...
8 years, 10 months ago (2012-02-23 18:31:17 UTC) #12
sail
On 2012/02/23 13:27:54, jeremy wrote: > Thanks for the clarification - can you add a ...
8 years, 10 months ago (2012-02-23 18:31:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9423048/17002
8 years, 10 months ago (2012-02-23 21:25:21 UTC) #14
commit-bot: I haz the power
Presubmit check for 9423048-17002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-23 21:25:29 UTC) #15
sky
LGTM
8 years, 10 months ago (2012-02-23 21:53:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/9423048/17002
8 years, 10 months ago (2012-02-23 22:00:18 UTC) #17
commit-bot: I haz the power
Try job failure for 9423048-17002 (previous was lost) (retry) on win_rel for step "compile" (clobber ...
8 years, 10 months ago (2012-02-23 23:42:22 UTC) #18
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 03:00:52 UTC) #19

Powered by Google App Engine
This is Rietveld 408576698