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

Side by Side Diff: chrome/renderer/about_handler.cc

Issue 9215005: Revert 117824 - Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/about_handler.h" 5 #include "chrome/renderer/about_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 #include "chrome/common/about_handler.h" 10 #include "chrome/common/about_handler.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 // static 56 // static
57 void AboutHandler::AboutKill() { 57 void AboutHandler::AboutKill() {
58 base::KillProcess(base::GetCurrentProcessHandle(), 1, false); 58 base::KillProcess(base::GetCurrentProcessHandle(), 1, false);
59 } 59 }
60 60
61 // static 61 // static
62 void AboutHandler::AboutHang() { 62 void AboutHandler::AboutHang() {
63 for (;;) { 63 for (;;) {
64 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); 64 base::PlatformThread::Sleep(1000);
65 } 65 }
66 } 66 }
67 67
68 // static 68 // static
69 void AboutHandler::AboutShortHang() { 69 void AboutHandler::AboutShortHang() {
70 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20)); 70 base::PlatformThread::Sleep(20000);
71 } 71 }
72 72
73 // static 73 // static
74 size_t AboutHandler::AboutURLHandlerSize() { 74 size_t AboutHandler::AboutURLHandlerSize() {
75 return arraysize(about_urls_handlers); 75 return arraysize(about_urls_handlers);
76 } 76 }
OLDNEW
« no previous file with comments | « chrome/common/worker_thread_ticker_unittest.cc ('k') | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698