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

Issue 10918101: Rename elements of LinkType enum (Closed)

Created:
8 years, 3 months ago by nhiroki
Modified:
8 years, 3 months ago
Reviewers:
satorux1, kochi
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Rename elements of the LinkType enum to "kSomething" to avoid naming conflict. Specifically "ALTERNATE" caused a conflict problem on Windows build. BUG=146809 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155376

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -72 lines) Patch
M chrome/browser/chromeos/gdata/drive_files.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_parser.h View 1 chunk +21 lines, -21 lines 1 comment Download
M chrome/browser/chromeos/gdata/gdata_wapi_parser.cc View 8 chunks +31 lines, -31 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_parser_unittest.cc View 4 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nhiroki
Hi, kochi-san Could you review this? Thanks!
8 years, 3 months ago (2012-09-07 00:10:33 UTC) #1
kochi
LGTM Please write in description that specifically "ALTERNATE" caused a conflict problem on Windows build.
8 years, 3 months ago (2012-09-07 01:15:24 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/10918101/1
8 years, 3 months ago (2012-09-07 01:33:39 UTC) #3
commit-bot: I haz the power
Change committed as 155376
8 years, 3 months ago (2012-09-07 13:05:22 UTC) #4
satorux1
http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_parser.h File chrome/browser/chromeos/gdata/gdata_wapi_parser.h (right): http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_parser.h#newcode72 chrome/browser/chromeos/gdata/gdata_wapi_parser.h:72: kOpenWith, This is not allowed. Filed a bug: http://code.google.com/p/chromium/issues/detail?id=147284 ...
8 years, 3 months ago (2012-09-07 17:08:50 UTC) #5
kinuko
On 2012/09/07 17:08:50, satorux1 wrote: > http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_parser.h > File chrome/browser/chromeos/gdata/gdata_wapi_parser.h (right): > > http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_parser.h#newcode72 > ...
8 years, 3 months ago (2012-09-09 12:41:16 UTC) #6
satorux1
8 years, 3 months ago (2012-09-09 15:41:07 UTC) #7
On 2012/09/09 12:41:16, kinuko wrote:
> On 2012/09/07 17:08:50, satorux1 wrote:
> >
>
http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/...
> > File chrome/browser/chromeos/gdata/gdata_wapi_parser.h (right):
> > 
> >
>
http://codereview.chromium.org/10918101/diff/1/chrome/browser/chromeos/gdata/...
> > chrome/browser/chromeos/gdata/gdata_wapi_parser.h:72: kOpenWith,
> > This is not allowed. Filed a bug:
> > http://code.google.com/p/chromium/issues/detail?id=147284
> > 
> > http://www.chromium.org/developers/coding-style
> > 
> > Though the Google C++ Style Guide says to use kConstantNaming for enums,
> Chrome
> > still uses MACRO_STYLE naming for enums for consistency with our existing
> code.
> 
> If we're in doubt we should ask this on chromium-dev, but I don't think this
> phrase is particularly saying 'kConstantNaming' naming is NOT allowed in
enums.
> 
> I briefly remember I heard we use BOTH, and actually we could see a lot of
> kCamelCase type enums broadly used in the chromium code base, even in base/ or
> in net/.

Other enums in the same directory are named LIKE_THIS so please be consistent
with others.

Powered by Google App Engine
This is Rietveld 408576698