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

Issue 8457004: platform_util::OpenItem fixes (Closed)

Created:
9 years, 1 month ago by achuithb
Modified:
9 years, 1 month ago
CC:
chromium-reviews, asanka, nkostylev+watch_chromium.org, Erik does not do reviews, achuith+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

platform_util OpenItem/ShowItemInFolder threading fixes. OpenItem and ShowItemInFolder must now be called from the UI thread only - add a comment to this effect in the header. Dispatch the implementations to the FILE thread on chromeos/win/linux. Fix usage of OpenItem/ShowItemInFolder in DownloadsDomHandler and ChromeContentBrowserClient. Rename ShowFullTabUrl to ViewFolder and get rid of unused Profile* arg. Use anonymous namespace for functions in file_manager_util.cc and platform_util_chromeos.cc Replace NewRunnableFunction with Bind. Add additional threading DCHECKs. Fix lint errors. BUG=chromium-os:21585 TEST=go to downloads page (ctrl-j), click on Open Downloads Folder. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109702

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : content::BrowserThread #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 7

Patch Set 11 : rdsmith feedback #

Total comments: 6

Patch Set 12 : review feedback from mark #

Patch Set 13 : update comments #

Total comments: 4

Patch Set 14 : Fix win compile using IgnoreReturn #

Patch Set 15 : More mark review feedback fixes #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -68 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/file_manager_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/platform_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +36 lines, -19 lines 0 comments Download
M chrome/browser/platform_util_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/platform_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/platform_util_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
achuithb
This CL is in response to Asanka's comments in http://codereview.chromium.org/8439018/ Randy: Please feel free to ...
9 years, 1 month ago (2011-11-07 22:43:02 UTC) #1
asanka
Thanks for doing this! http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc File chrome/browser/platform_util_chromeos.cc (right): http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc#newcode84 chrome/browser/platform_util_chromeos.cc:84: base::Bind(&OpenItemOnFileThread, full_path)); Would it make ...
9 years, 1 month ago (2011-11-08 15:29:29 UTC) #2
achuithb
http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc File chrome/browser/platform_util_chromeos.cc (right): http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc#newcode84 chrome/browser/platform_util_chromeos.cc:84: base::Bind(&OpenItemOnFileThread, full_path)); file_util::DirectoryExists needs to be called on the ...
9 years, 1 month ago (2011-11-08 20:49:57 UTC) #3
asanka
LGTM. http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc File chrome/browser/platform_util_chromeos.cc (right): http://codereview.chromium.org/8457004/diff/27002/chrome/browser/platform_util_chromeos.cc#newcode84 chrome/browser/platform_util_chromeos.cc:84: base::Bind(&OpenItemOnFileThread, full_path)); On 2011/11/08 20:49:57, achuith.bhandarkar wrote: > ...
9 years, 1 month ago (2011-11-08 20:59:33 UTC) #4
achuithb
Thanks for the review, Asanka. Randy: Let me know if you'd like to review or ...
9 years, 1 month ago (2011-11-08 21:17:33 UTC) #5
Randy Smith (Not in Mondays)
On 2011/11/08 21:17:33, achuith.bhandarkar wrote: > Thanks for the review, Asanka. > > Randy: Let ...
9 years, 1 month ago (2011-11-08 22:12:35 UTC) #6
Randy Smith (Not in Mondays)
Basically nits; if we're cleaning up the interface I'd like to be consistent and document ...
9 years, 1 month ago (2011-11-08 22:27:55 UTC) #7
achuithb
Sorry about the rebase. Only the platform_util* files, and chrome_content_browser_client.cc have changed. I've done some ...
9 years, 1 month ago (2011-11-09 00:26:27 UTC) #8
Mark Mentovai
http://codereview.chromium.org/8457004/diff/35002/chrome/browser/platform_util.h File chrome/browser/platform_util.h (right): http://codereview.chromium.org/8457004/diff/35002/chrome/browser/platform_util.h#newcode20 chrome/browser/platform_util.h:20: // Must be called from the UI thread. This ...
9 years, 1 month ago (2011-11-09 14:22:49 UTC) #9
Randy Smith (Not in Mondays)
On 2011/11/09 00:26:27, achuith.bhandarkar wrote: > Sorry about the rebase. Only the platform_util* files, and ...
9 years, 1 month ago (2011-11-09 17:20:29 UTC) #10
achuithb
Thanks for the comments, Mark. PTAL. http://codereview.chromium.org/8457004/diff/35002/chrome/browser/platform_util.h File chrome/browser/platform_util.h (right): http://codereview.chromium.org/8457004/diff/35002/chrome/browser/platform_util.h#newcode20 chrome/browser/platform_util.h:20: // Must be ...
9 years, 1 month ago (2011-11-09 20:21:35 UTC) #11
Mark Mentovai
LGTM with these two changes. http://codereview.chromium.org/8457004/diff/38004/chrome/browser/platform_util_chromeos.cc File chrome/browser/platform_util_chromeos.cc (right): http://codereview.chromium.org/8457004/diff/38004/chrome/browser/platform_util_chromeos.cc#newcode26 chrome/browser/platform_util_chromeos.cc:26: const std::string kGmailComposeUrl = ...
9 years, 1 month ago (2011-11-09 20:41:18 UTC) #12
achuithb
Thanks for the feedback, Mark. I've fixed the last 2 issues. Randy: I know you ...
9 years, 1 month ago (2011-11-09 22:26:11 UTC) #13
Mark Mentovai
LGTM
9 years, 1 month ago (2011-11-09 22:41:58 UTC) #14
asanka
LGTM
9 years, 1 month ago (2011-11-09 22:46:37 UTC) #15
Randy Smith (Not in Mondays)
9 years, 1 month ago (2011-11-09 22:52:27 UTC) #16
Still LGTM.

Powered by Google App Engine
This is Rietveld 408576698