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

Issue 333023: Fix compile on Snow Leopard. (Closed)

Created:
11 years, 2 months ago by Nico
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix compile on Snow Leopard. BUG=TEST=phajdan Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30012

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/cocoa/bookmark_bar_controller_unittest.mm View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
Nico
11 years, 2 months ago (2009-10-24 18:44:02 UTC) #1
Mark Mentovai
LGTM on the fix, but consider this... http://codereview.chromium.org/333023/diff/1/2 File chrome/browser/cocoa/bookmark_bar_controller_unittest.mm (right): http://codereview.chromium.org/333023/diff/1/2#newcode679 Line 679: std::wstring ...
11 years, 2 months ago (2009-10-24 18:46:21 UTC) #2
Nico
http://codereview.chromium.org/333023/diff/1/2 File chrome/browser/cocoa/bookmark_bar_controller_unittest.mm (right): http://codereview.chromium.org/333023/diff/1/2#newcode679 Line 679: std::wstring titles[] = { On 2009/10/24 18:46:21, Mark ...
11 years, 2 months ago (2009-10-24 18:51:33 UTC) #3
Mark Mentovai
11 years, 2 months ago (2009-10-24 18:53:36 UTC) #4
OK, cool, that sounds good.  Thanks for the zippy response.

Mark

Nico wrote:
> http://codereview.chromium.org/333023/diff/1/2
> File chrome/browser/cocoa/bookmark_bar_controller_unittest.mm (right):
>
> http://codereview.chromium.org/333023/diff/1/2#newcode679
> Line 679: std::wstring titles[] =3D {
> On 2009/10/24 18:46:21, Mark Mentovai wrote:
>>
>> Does this even need to be std::wstring? =A0You can make both of these
>
> arrays be
>>
>> const char*[] and use base::SysUTF8ToNSString on each. =A0Or, as an
>
> alternative,
>>
>> you can make each be an array of NSString*s.
>
> GetTitle() below returns a wstring, and the GURL constructor takes a
> char*, so this seemed easiest=85
>
> I could use NSString arrays and then convert them to wstrings below when
> comparing, but this being a test I wanted to make the reference data as
> close to what I want the result be as possible.
>
> It doesn't really matter, so I'll leave it as is.

Powered by Google App Engine
This is Rietveld 408576698