Commit 42536297 authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Removing some "using namespace std"

The code guide doesn't allow "using namespace", and they have
a tendency to cause problems with jumbo builds so this is just
a cleanup to avoid possible future problems.

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ibf519c5e4ddb0497961f1befa8de416039e4fc61
Reviewed-on: https://chromium-review.googlesource.com/992318Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#548386}
parent 3331f5c7
......@@ -113,8 +113,7 @@ TEST(FileTest, SelfSwap) {
FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1");
File file(file_path,
base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_DELETE_ON_CLOSE);
using namespace std;
swap(file, file);
std::swap(file, file);
EXPECT_TRUE(file.IsValid());
}
......
......@@ -141,7 +141,7 @@ int RealOnMoreData(base::TimeDelta /* delay */,
} // namespace
std::ostream& operator<<(std::ostream& os, const AudioParameters& params) {
using namespace std;
using std::endl;
os << endl << "format: " << FormatToString(params.format()) << endl
<< "channel layout: " << LayoutToString(params.channel_layout()) << endl
<< "sample rate: " << params.sample_rate() << endl
......
......@@ -77,8 +77,6 @@ namespace blink {
using namespace cssvalue;
using namespace HTMLNames;
using namespace std;
using AttributeChangedFunction =
void (HTMLElement::*)(const Element::AttributeModificationParams& params);
......@@ -1134,7 +1132,7 @@ static RGBA32 ParseColorStringWithCrazyLegacyRules(const String& color_string) {
// each component.
DCHECK_GE(digit_buffer.size(), 6u);
size_t component_length = digit_buffer.size() / 3;
size_t component_search_window_length = min<size_t>(component_length, 8);
size_t component_search_window_length = std::min<size_t>(component_length, 8);
size_t red_index = component_length - component_search_window_length;
size_t green_index = component_length * 2 - component_search_window_length;
size_t blue_index = component_length * 3 - component_search_window_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment