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

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed)

Created:
6 years, 6 months ago by Sunil Ratnu
Modified:
6 years, 6 months ago
Reviewers:
tkent, haraken, Inactive
CC:
blink-reviews, blink-reviews-dom_chromium.org, shans, tzik, eae+blinkwatch, fs, yurys+blink_chromium.org, apavlov+blink_chromium.org, loislo+blink_chromium.org, Steve Block, rwlbuis, krit, caseq+blink_chromium.org, aandrey+blink_chromium.org, arv+blink, Mike Lawther (Google), malch+blink_chromium.org, Timothy Loh, abarth-chromium, dstockwell, dglazkov+blink, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, pdr., Eric Willigers, rjwright, sof, nhiroki, eustas+blink_chromium.org, paulirish+reviews_chromium.org, lushnikov+blink_chromium.org, darktears, Stephen Chennney, blink-reviews-animation_chromium.org, kouhei+svg_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, f(malita), groby+blinkspell_chromium.org, sergeyv+blink_chromium.org, kinuko+fileapi, gyuyoung.kim_webkit.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Removing "using" declarations that import names in the C++ Standard library. This is as per the the coding guidelines for blink, which disallows the use of "using" declarations of any kind to import names in the standard template library. BUG=NONE Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176032

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Fixed Trybot Errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -134 lines) Patch
M Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8GeolocationCustom.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/animation/AnimationTranslationUtil.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 4 chunks +4 lines, -5 lines 0 comments Download
M Source/core/dom/Text.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/ViewportDescription.cpp View 4 chunks +8 lines, -10 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/editing/Editor.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/editing/TextIterator.cpp View 1 9 chunks +10 lines, -11 lines 0 comments Download
M Source/core/editing/htmlediting.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/editing/markup.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/fileapi/FileReaderLoader.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/frame/DOMTimer.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/frame/ImageBitmap.cpp View 7 chunks +11 lines, -13 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/inspector/ContentSearchUtils.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/inspector/DOMEditor.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 1 5 chunks +7 lines, -9 lines 0 comments Download
M Source/core/inspector/InjectedScriptHost.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/page/ScopedPageLoadDeferrer.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/page/TouchDisambiguation.cpp View 1 2 4 chunks +4 lines, -6 lines 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/svg/animation/SVGSMILElement.cpp View 1 8 chunks +9 lines, -11 lines 0 comments Download
M Source/core/xml/XMLTreeViewer.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebPluginScrollbarImpl.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 7 chunks +10 lines, -11 lines 0 comments Download
M Source/web/tests/ScrollAnimatorNoneTest.cpp View 3 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sunil Ratnu
Please have a look.
6 years, 6 months ago (2014-06-11 15:27:41 UTC) #1
Sunil Ratnu
On 2014/06/11 15:27:41, sunilratnu wrote: > Please have a look. There seems to be a ...
6 years, 6 months ago (2014-06-11 16:26:53 UTC) #2
tkent
> Removing "using" declarations that import names in the STL library "STL library" is not ...
6 years, 6 months ago (2014-06-12 00:23:24 UTC) #3
Sunil Ratnu
Thanks tkent for the quick review! Made the changes suggested by you. Please have a ...
6 years, 6 months ago (2014-06-12 09:00:02 UTC) #4
tkent
lgtm
6 years, 6 months ago (2014-06-12 09:06:20 UTC) #5
haraken
LGTM for bindings/.
6 years, 6 months ago (2014-06-12 09:19:24 UTC) #6
Sunil Ratnu
The CQ bit was checked by sunil.ratnu@samsung.com
6 years, 6 months ago (2014-06-12 09:29:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/329183002/20001
6 years, 6 months ago (2014-06-12 09:30:09 UTC) #8
Sunil Ratnu
The CQ bit was unchecked by sunil.ratnu@samsung.com
6 years, 6 months ago (2014-06-12 09:30:16 UTC) #9
Sunil Ratnu
The CQ bit was checked by sunil.ratnu@samsung.com
6 years, 6 months ago (2014-06-12 14:23:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/329183002/40001
6 years, 6 months ago (2014-06-12 14:24:01 UTC) #11
commit-bot: I haz the power
Change committed as 176032
6 years, 6 months ago (2014-06-12 16:01:32 UTC) #12
Stephen Chennney
6 years, 6 months ago (2014-06-13 19:17:49 UTC) #13
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/330933002/ by schenney@chromium.org.

The reason for reverting is: This patch is causing failures on the Chromium
Linux Tsan v2 bot:
http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Builder%20(T...

The problem is that std::abs(int) is found in <cstdlib> but we apparently only
include <cmath> everywhere. So the compiler only knows about std::abs(float) and
variants.

You can probably fix this by including <cstdlib> in the places where you use
std::abs..

Powered by Google App Engine
This is Rietveld 408576698