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 @@ ...@@ -38,11 +38,13 @@
namespace content { namespace content {
#if defined(OS_ANDROID)
namespace { namespace {
void TimedOut() { void TimedOut() {
LOG(FATAL) << "Timed out waiting for GPU channel."; LOG(FATAL) << "Timed out waiting for GPU channel.";
} }
} // namespace } // namespace
#endif // OS_ANDROID
BrowserGpuChannelHostFactory* BrowserGpuChannelHostFactory::instance_ = NULL; BrowserGpuChannelHostFactory* BrowserGpuChannelHostFactory::instance_ = NULL;
...@@ -351,15 +353,12 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() { ...@@ -351,15 +353,12 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() {
void BrowserGpuChannelHostFactory::RestartTimeout() { void BrowserGpuChannelHostFactory::RestartTimeout() {
DCHECK(IsMainThread()); DCHECK(IsMainThread());
// Only implement timeout on Android, which does not have a software fallback.
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
if (base::CommandLine::ForCurrentProcess()->HasSwitch( if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTimeoutsForProfiling)) { switches::kDisableTimeoutsForProfiling)) {
return; return;
} }
#else
// Only implement timeout on Android, which does not have a software fallback.
return;
#endif
if (!pending_request_) if (!pending_request_)
return; return;
...@@ -376,6 +375,7 @@ void BrowserGpuChannelHostFactory::RestartTimeout() { ...@@ -376,6 +375,7 @@ void BrowserGpuChannelHostFactory::RestartTimeout() {
timeout_.Start(FROM_HERE, timeout_.Start(FROM_HERE,
base::TimeDelta::FromSeconds(kGpuChannelTimeoutInSeconds), base::TimeDelta::FromSeconds(kGpuChannelTimeoutInSeconds),
base::Bind(&TimedOut)); base::Bind(&TimedOut));
#endif // OS_ANDROID
} }
// static // 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