Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / net / proxy / multi_threaded_proxy_resolver.cc
index 07d2d6a..cab22ab 100644 (file)
@@ -314,11 +314,8 @@ MultiThreadedProxyResolver::Executor::Executor(
   DCHECK(coordinator);
   DCHECK(resolver);
   // Start up the thread.
-  // Note that it is safe to pass a temporary C-String to Thread(), as it will
-  // make a copy.
-  std::string thread_name =
-      base::StringPrintf("PAC thread #%d", thread_number);
-  thread_.reset(new base::Thread(thread_name.c_str()));
+  thread_.reset(new base::Thread(base::StringPrintf("PAC thread #%d",
+                                                    thread_number)));
   CHECK(thread_->Start());
 }