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

Issue 5017001: Remove an unneeded Mac include. (Closed)

Created:
10 years, 1 month ago by TVL
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Remove an unneeded Mac include. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66136

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/file_path.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
TVL
10 years, 1 month ago (2010-11-15 16:23:37 UTC) #1
Mark Mentovai
non-lgtm http://codereview.chromium.org/5017001/diff/1/base/file_path.cc File base/file_path.cc (right): http://codereview.chromium.org/5017001/diff/1/base/file_path.cc#newcode993 base/file_path.cc:993: CFStringCreateWithBytesNoCopy( Hello kitty.
10 years, 1 month ago (2010-11-15 16:47:07 UTC) #2
Mark Mentovai
Oh, the include was for CoreServices, not CoreFoundation. You should just change it.
10 years, 1 month ago (2010-11-15 16:48:08 UTC) #3
TVL
http://codereview.chromium.org/5017001/diff/1/base/file_path.cc File base/file_path.cc (right): http://codereview.chromium.org/5017001/diff/1/base/file_path.cc#newcode22 base/file_path.cc:22: #include "base/mac/scoped_cftyperef.h" fyi - this pulls in corefoundation
10 years, 1 month ago (2010-11-15 17:02:00 UTC) #4
TVL
new diff up
10 years, 1 month ago (2010-11-15 17:08:20 UTC) #5
Mark Mentovai
LGTM http://codereview.chromium.org/5017001/diff/1/base/file_path.cc File base/file_path.cc (right): http://codereview.chromium.org/5017001/diff/1/base/file_path.cc#newcode22 base/file_path.cc:22: #include "base/mac/scoped_cftyperef.h" TVL wrote: > fyi - this ...
10 years, 1 month ago (2010-11-15 17:11:31 UTC) #6
TVL
10 years, 1 month ago (2010-11-15 17:16:15 UTC) #7
On 2010/11/15 17:11:31, Mark Mentovai wrote:
> LGTM
> 
> http://codereview.chromium.org/5017001/diff/1/base/file_path.cc
> File base/file_path.cc (right):
> 
> http://codereview.chromium.org/5017001/diff/1/base/file_path.cc#newcode22
> base/file_path.cc:22: #include "base/mac/scoped_cftyperef.h"
> TVL wrote:
> > fyi - this pulls in corefoundation
> 
> I know, but our style is:
> 
> “if x.cc depends on y.h, either x.cc or x.h needs to #include y.h.”
> 
> It’s not enough for x.cc to #include z.h and for z.h to #include y.h. That’s
too
> tenuous a relationship, it’s dependent on z.h internals, and it’s likely to
> cause trivial changes to z.h’s implementation details to make other things
fall
> apart.

Agreed.  Was just answering why it hadn't blown up.

Powered by Google App Engine
This is Rietveld 408576698