summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/test/ui/run_all_unittests.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/test/ui/run_all_unittests.cc b/chrome/test/ui/run_all_unittests.cc
index 8d1307772..b9f7c47 100644
--- a/chrome/test/ui/run_all_unittests.cc
+++ b/chrome/test/ui/run_all_unittests.cc
@@ -28,6 +28,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "base/at_exit.h"
+#include "base/platform_thread.h"
#include "chrome/test/ui/ui_test_suite.h"
int main(int argc, char **argv) {
@@ -35,6 +36,6 @@ int main(int argc, char **argv) {
// the AtExitManager or else we will leak objects.
base::AtExitManager at_exit_manager;
- Thread::SetThreadName("Tests_Main", GetCurrentThreadId());
+ PlatformThread::SetName(PlatformThread::CurrentId(), "Tests_Main");
return UITestSuite(argc, argv).Run();
}