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

Issue 14680012: Clean up ifdef around FilePath creation(webkit) (Closed)

Created:
7 years, 7 months ago by mrunal
Modified:
7 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@filepath2
Visibility:
Public.

Description

Clean up ifdef around FilePath creation(webkit) Splitting from the original patch here, crrev.com/14942008 to only include 'webkit' specific changes BUG=102853 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203002

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clean up ifdef around FilePath creation(webkit) #

Total comments: 4

Patch Set 3 : Clean up ifdef around FilePath creation(webkit) #

Total comments: 1

Patch Set 4 : Clean up ifdef around FilePath creation(webkit) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -10 lines) Patch
M net/base/mime_util.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M webkit/plugins/npapi/plugin_stream.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mrunal
7 years, 7 months ago (2013-05-16 02:21:40 UTC) #1
kinuko
Looks plausible, I'd like defer this to NPAPI owners.
7 years, 7 months ago (2013-05-16 05:20:25 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) I think MimeUtil::GetMimeTypeFromExtensionHelper() should also be ...
7 years, 7 months ago (2013-05-16 06:48:05 UTC) #3
mrunal
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) I don't think it will call ...
7 years, 7 months ago (2013-05-17 00:16:00 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) On 2013/05/17 00:16:00, mrunal wrote: > ...
7 years, 7 months ago (2013-05-17 07:04:44 UTC) #5
mrunal
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) > Basically, MimeUtil uses the same ...
7 years, 7 months ago (2013-05-20 23:48:06 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) On 2013/05/20 23:48:06, mrunal wrote: > ...
7 years, 7 months ago (2013-05-21 17:31:01 UTC) #7
mrunal
https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc File webkit/plugins/npapi/plugin_stream.cc (right): https://codereview.chromium.org/14680012/diff/1/webkit/plugins/npapi/plugin_stream.cc#newcode87 webkit/plugins/npapi/plugin_stream.cc:87: if (net::GetMimeTypeFromFile(path, &temp_mime_type)) Hi Bernhard, Thanks for the clarification. ...
7 years, 7 months ago (2013-05-22 01:55:39 UTC) #8
mrunal
PTAL
7 years, 6 months ago (2013-05-28 18:17:11 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc#newcode228 net/base/mime_util.cc:228: const string& ext_narrow_str = WideToUTF8(base::SysNativeMBToWide(ext)); Why don't you just ...
7 years, 6 months ago (2013-05-28 21:26:14 UTC) #10
mrunal
https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc#newcode228 net/base/mime_util.cc:228: const string& ext_narrow_str = WideToUTF8(base::SysNativeMBToWide(ext)); On 2013/05/28 21:26:14, Bernhard ...
7 years, 6 months ago (2013-05-28 21:38:47 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc#newcode228 net/base/mime_util.cc:228: const string& ext_narrow_str = WideToUTF8(base::SysNativeMBToWide(ext)); On 2013/05/28 21:38:47, mrunal ...
7 years, 6 months ago (2013-05-28 22:04:00 UTC) #12
mrunal
https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/14680012/diff/11001/net/base/mime_util.cc#newcode228 net/base/mime_util.cc:228: const string& ext_narrow_str = WideToUTF8(base::SysNativeMBToWide(ext)); > Right, just construct ...
7 years, 6 months ago (2013-05-28 22:41:02 UTC) #13
mrunal
PTAL
7 years, 6 months ago (2013-05-28 22:52:14 UTC) #14
jam
bauerb is in webkit/plugins/npapi/OWNERS, removing myself
7 years, 6 months ago (2013-05-28 23:16:20 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/14680012/diff/20001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/14680012/diff/20001/net/base/mime_util.cc#newcode223 net/base/mime_util.cc:223: const string& ext_narrow_str = path_ext.AsUTF8Unsafe(); You should not take ...
7 years, 6 months ago (2013-05-28 23:26:41 UTC) #16
mrunal
> You should not take a reference here! The returned value might be a temporary, ...
7 years, 6 months ago (2013-05-28 23:44:50 UTC) #17
Bernhard Bauer
LGTM!
7 years, 6 months ago (2013-05-29 07:28:58 UTC) #18
cbentzel
LGTM for net
7 years, 6 months ago (2013-05-29 11:08:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mrunal.kapade@intel.com/14680012/26001
7 years, 6 months ago (2013-05-29 19:00:26 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 23:16:51 UTC) #21
Message was sent while issue was closed.
Change committed as 203002

Powered by Google App Engine
This is Rietveld 408576698