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

Unified Diff: content/shell/renderer/test_runner/TestPlugin.cpp

Issue 373443002: Remove all uses of "using namespace std" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding myself in AUTHORS Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/TestPlugin.cpp
diff --git a/content/shell/renderer/test_runner/TestPlugin.cpp b/content/shell/renderer/test_runner/TestPlugin.cpp
index 22f56f5ad3d5035833e6e524b9f5acfd01ebb792..6edf08f50af860ab97705f9da014d0f3c0184a04 100644
--- a/content/shell/renderer/test_runner/TestPlugin.cpp
+++ b/content/shell/renderer/test_runner/TestPlugin.cpp
@@ -25,7 +25,6 @@
#include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
using namespace blink;
-using namespace std;
namespace content {
@@ -477,14 +476,14 @@ void TestPlugin::destroyScene()
bool TestPlugin::initProgram()
{
- const string vertexSource(
+ const std::string vertexSource(
"attribute vec4 position; \n"
"void main() { \n"
" gl_Position = position; \n"
"} \n"
);
- const string fragmentSource(
+ const std::string fragmentSource(
"precision mediump float; \n"
"uniform vec4 color; \n"
"void main() { \n"
@@ -539,7 +538,7 @@ void TestPlugin::drawPrimitive()
m_context->drawArrays(GL_TRIANGLES, 0, 3);
}
-unsigned TestPlugin::loadShader(unsigned type, const string& source)
+unsigned TestPlugin::loadShader(unsigned type, const std::string& source)
{
unsigned shader = m_context->createShader(type);
if (shader) {
@@ -556,7 +555,7 @@ unsigned TestPlugin::loadShader(unsigned type, const string& source)
return shader;
}
-unsigned TestPlugin::loadProgram(const string& vertexSource, const string& fragmentSource)
+unsigned TestPlugin::loadProgram(const std::string& vertexSource, const std::string& fragmentSource)
{
unsigned vertexShader = loadShader(GL_VERTEX_SHADER, vertexSource);
unsigned fragmentShader = loadShader(GL_FRAGMENT_SHADER, fragmentSource);
« no previous file with comments | « content/shell/renderer/test_runner/TestInterfaces.cpp ('k') | content/shell/renderer/test_runner/WebTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698