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

Issue 7184032: Upstream android file related code. (Closed)

Created:
9 years, 6 months ago by michaelbai
Modified:
9 years, 6 months ago
CC:
brettw-cc_chromium.org
Visibility:
Public.

Description

Upstream android file related code. Implemented file related features BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89914

Patch Set 1 #

Total comments: 26

Patch Set 2 : Addressed the comments #

Patch Set 3 : update DEPS #

Total comments: 13

Patch Set 4 : Address the comments #

Total comments: 14

Patch Set 5 : address comments #

Total comments: 5

Patch Set 6 : Rollback base_paths_android.cc change #

Patch Set 7 : Add TODO #

Patch Set 8 : Sync again #

Patch Set 9 : remove android specific shmem method #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -6 lines) Patch
M base/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A base/base_paths_android.cc View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
A base/file_util_android.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 5 chunks +17 lines, -3 lines 0 comments Download
A base/os_compat_android.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A base/os_compat_android.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M base/path_service.cc View 3 chunks +17 lines, -1 line 0 comments Download
M base/platform_file_posix.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A base/shared_memory_android.cc View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
M base/shared_memory_posix.cc View 1 2 3 4 5 6 7 8 5 chunks +28 lines, -0 lines 1 comment Download
M base/sys_info_posix.cc View 1 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
michaelbai
Please help to review it.
9 years, 6 months ago (2011-06-17 00:17:29 UTC) #1
joth
Couple comments on making this better match chromium style. http://codereview.chromium.org/7184032/diff/1/base/platform_file.h File base/platform_file.h (right): http://codereview.chromium.org/7184032/diff/1/base/platform_file.h#newcode26 base/platform_file.h:26: ...
9 years, 6 months ago (2011-06-17 11:25:54 UTC) #2
joth
couple more things i noticed - put BUG=None, TEST=None in the CL description - check_deps ...
9 years, 6 months ago (2011-06-17 11:38:28 UTC) #3
brettw
http://codereview.chromium.org/7184032/diff/1/base/file_util_posix.cc File base/file_util_posix.cc (right): http://codereview.chromium.org/7184032/diff/1/base/file_util_posix.cc#newcode38 base/file_util_posix.cc:38: #if defined(OS_ANDROID) Can you put this below all other ...
9 years, 6 months ago (2011-06-17 16:29:14 UTC) #4
darin (slow to review)
http://codereview.chromium.org/7184032/diff/1/base/file_util_posix.cc File base/file_util_posix.cc (right): http://codereview.chromium.org/7184032/diff/1/base/file_util_posix.cc#newcode39 base/file_util_posix.cc:39: #include "base/platform_file.h" nit: this include looks unnecessary. http://codereview.chromium.org/7184032/diff/1/base/shared_memory_posix.cc File ...
9 years, 6 months ago (2011-06-17 16:29:29 UTC) #5
michaelbai
Thanks very much for your review. Addressed all comments, please check again. http://codereview.chromium.org/7184032/diff/1/base/file_util_posix.cc File base/file_util_posix.cc ...
9 years, 6 months ago (2011-06-17 22:41:29 UTC) #6
joth
Thanks! I just have a couple nits, and a question about the naming of platform_file_android.h ...
9 years, 6 months ago (2011-06-19 12:48:05 UTC) #7
brettw
LGTM, just some minor things (don't need to wait for my review again). http://codereview.chromium.org/7184032/diff/2013/base/DEPS File ...
9 years, 6 months ago (2011-06-20 03:50:40 UTC) #8
darin (slow to review)
http://codereview.chromium.org/7184032/diff/2025/base/base_paths_android.cc File base/base_paths_android.cc (right): http://codereview.chromium.org/7184032/diff/2025/base/base_paths_android.cc#newcode10 base/base_paths_android.cc:10: #include "base/android_os.h" this CL does not have this android_os.h ...
9 years, 6 months ago (2011-06-20 18:44:01 UTC) #9
michaelbai
http://codereview.chromium.org/7184032/diff/2013/base/shared_memory.h File base/shared_memory.h (right): http://codereview.chromium.org/7184032/diff/2013/base/shared_memory.h#newcode188 base/shared_memory.h:188: // Returns the size of shared memory. On 2011/06/19 ...
9 years, 6 months ago (2011-06-20 22:50:36 UTC) #10
darin (slow to review)
http://codereview.chromium.org/7184032/diff/6003/base/base_paths_android.cc File base/base_paths_android.cc (right): http://codereview.chromium.org/7184032/diff/6003/base/base_paths_android.cc#newcode32 base/base_paths_android.cc:32: *result = aos->GetLibDirectory(); GetLibDirectory sounds like it returns the ...
9 years, 6 months ago (2011-06-21 18:44:02 UTC) #11
michaelbai
Joth has replied your question about shmem. Please see my answer below. http://codereview.chromium.org/7184032/diff/6003/base/base_paths_android.cc File base/base_paths_android.cc ...
9 years, 6 months ago (2011-06-21 20:17:31 UTC) #12
darin (slow to review)
9 years, 6 months ago (2011-06-21 22:15:06 UTC) #13
LGTM w/ one nit:

http://codereview.chromium.org/7184032/diff/12015/base/shared_memory_posix.cc
File base/shared_memory_posix.cc (right):

http://codereview.chromium.org/7184032/diff/12015/base/shared_memory_posix.cc...
base/shared_memory_posix.cc:224: DCHECK_GE((uint32)ashmem_bytes, bytes);
nit: use a C++ style cast here.  (sorry, didn't notice before!)

Powered by Google App Engine
This is Rietveld 408576698