summaryrefslogtreecommitdiffstats
path: root/extensions/browser/updater
diff options
context:
space:
mode:
authorj.isorce <j.isorce@samsung.com>2016-01-26 01:08:51 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-26 09:10:16 +0000
commit23df969355caed40d16791d22ad35929a6553f9b (patch)
treef694221a2630f03f2bfda66fc6a49a31dc563bee /extensions/browser/updater
parent07a9d8301ec2709af99986b69a7704570aff08db (diff)
downloadchromium_src-23df969355caed40d16791d22ad35929a6553f9b.zip
chromium_src-23df969355caed40d16791d22ad35929a6553f9b.tar.gz
chromium_src-23df969355caed40d16791d22ad35929a6553f9b.tar.bz2
Fix build error with gcc 4.8.2 about WARN_UNUSED_RESULT
For static methods it does not seem to work properly with older gcc. Indeed the compiler consider the result as not used in this example: sequence_token_ = BrowserThread::GetBlockingPool()->GetSequenceToken() "error: ignoring return value of 'static base::SequencedWorkerPool* content::BrowserThread::GetBlockingPool()', declared with attribute warn_unused_result [-Werror=unused-result]" The solution is just to call GetSequenceToken() directly as: base::SequencedWorkerPool::GetSequenceToken() as it is static. BUG=579461 R=cpu@chromium.org, nico@chromium.org TEST= GYP_DEFINES="clang=0 use_sysroot=0" Review URL: https://codereview.chromium.org/1610103002 Cr-Commit-Position: refs/heads/master@{#371479}
Diffstat (limited to 'extensions/browser/updater')
-rw-r--r--extensions/browser/updater/update_client_config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/browser/updater/update_client_config.cc b/extensions/browser/updater/update_client_config.cc
index 3e5e1b1..36ab34f 100644
--- a/extensions/browser/updater/update_client_config.cc
+++ b/extensions/browser/updater/update_client_config.cc
@@ -14,7 +14,7 @@ scoped_refptr<base::SequencedTaskRunner>
UpdateClientConfig::GetSequencedTaskRunner() const {
return content::BrowserThread::GetBlockingPool()
->GetSequencedTaskRunnerWithShutdownBehavior(
- content::BrowserThread::GetBlockingPool()->GetSequenceToken(),
+ base::SequencedWorkerPool::GetSequenceToken(),
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
}