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

Issue 2965323002: Avoid "using namespace blink" in global scope (Closed)

Created:
3 years, 5 months ago by Daniel Bratell
Modified:
3 years, 5 months ago
Reviewers:
yosin_UTC9, ojan
CC:
blink-reviews, chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this file will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. Review-Url: https://codereview.chromium.org/2965323002 Cr-Commit-Position: refs/heads/master@{#487501} Committed: https://chromium.googlesource.com/chromium/src/+/d460c016ba94c5921c85ca6f7c8af2cd106a9188

Patch Set 1 #

Patch Set 2 : Trying to avoid a jumbo exlude for mac. #

Patch Set 3 : Dropped jumbo testing code #

Patch Set 4 : Alternative solution to namespace problems. #

Patch Set 5 : Use anonymous namespaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -12 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/WebSubstringUtil.mm View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
Daniel Bratell
ojan, can you please take a look? It's a cleanup patch for jumbo, to remove ...
3 years, 5 months ago (2017-07-07 12:33:10 UTC) #11
Daniel Bratell
yusin, do you think this is a reasonable way to solve this? The problem is ...
3 years, 5 months ago (2017-07-11 16:00:09 UTC) #15
chromium-reviews
Can we move these static functions into "namespace blink" with anonymous namespace? Note: getBaselinePoint() doesn't ...
3 years, 5 months ago (2017-07-14 03:54:38 UTC) #16
blink-reviews
Can we move these static functions into "namespace blink" with anonymous namespace? Note: getBaselinePoint() doesn't ...
3 years, 5 months ago (2017-07-14 03:54:38 UTC) #17
Daniel Bratell
On 2017/07/14 03:54:38, blink-reviews wrote: > Can we move these static functions into "namespace blink" ...
3 years, 5 months ago (2017-07-14 10:06:50 UTC) #20
Daniel Bratell
Seems to work. yosin, is this what you planned?
3 years, 5 months ago (2017-07-14 15:32:35 UTC) #27
yosin_UTC9
lgtm Yes, this is what I suggested.
3 years, 5 months ago (2017-07-18 01:58:58 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2965323002/80001
3 years, 5 months ago (2017-07-18 11:19:48 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/491567)
3 years, 5 months ago (2017-07-18 13:27:41 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2965323002/80001
3 years, 5 months ago (2017-07-18 14:43:12 UTC) #35
commit-bot: I haz the power
3 years, 5 months ago (2017-07-18 16:44:34 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d460c016ba94c5921c85ca6f7c8a...

Powered by Google App Engine
This is Rietveld 408576698