Commit b98dec1d authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

Fix unreachable code after refs/heads/master@{#512687}

Change-Id: Iab66d40beb60e9d232d977916ae69a56d35f65b8
Reviewed-on: https://chromium-review.googlesource.com/747274
Commit-Queue: Bo <boliu@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512928}
parent bcc430dd
......@@ -38,11 +38,13 @@
namespace content {
#if defined(OS_ANDROID)
namespace {
void TimedOut() {
LOG(FATAL) << "Timed out waiting for GPU channel.";
}
} // namespace
#endif // OS_ANDROID
BrowserGpuChannelHostFactory* BrowserGpuChannelHostFactory::instance_ = NULL;
......@@ -351,15 +353,12 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() {
void BrowserGpuChannelHostFactory::RestartTimeout() {
DCHECK(IsMainThread());
// Only implement timeout on Android, which does not have a software fallback.
#if defined(OS_ANDROID)
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTimeoutsForProfiling)) {
return;
}
#else
// Only implement timeout on Android, which does not have a software fallback.
return;
#endif
if (!pending_request_)
return;
......@@ -376,6 +375,7 @@ void BrowserGpuChannelHostFactory::RestartTimeout() {
timeout_.Start(FROM_HERE,
base::TimeDelta::FromSeconds(kGpuChannelTimeoutInSeconds),
base::Bind(&TimedOut));
#endif // OS_ANDROID
}
// static
......
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