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

Issue 10543070: Remove #if from platform app launch code. (Closed)

Created:
8 years, 6 months ago by benwells
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Remove #if from platform app launch code. Convert path to UTF8 using the file_path routine AsUTF8Unsafe, instead of leaving as-is for all OS's except windows where conversion was UTF16ToUTF8. Using the file_path routine is safer, despite its name. This will potentially still have some problems on weird POSIX systems, but should be more robust that the previous #if version. BUG=None TEST=Covered by existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141178

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M chrome/browser/extensions/api/app/app_api.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
benwells
8 years, 6 months ago (2012-06-08 04:34:37 UTC) #1
koz (OOO until 15th September)
lgtm Could you add a comment to the change explaining why this is safe?
8 years, 6 months ago (2012-06-08 04:37:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10543070/1
8 years, 6 months ago (2012-06-08 04:49:41 UTC) #3
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 05:57:32 UTC) #4
Change committed as 141178

Powered by Google App Engine
This is Rietveld 408576698