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

Side by Side Diff: chrome/browser/component_updater/chrome_component_updater_configurator.cc

Issue 1610103002: Fix build error with gcc 4.8.2 about WARN_UNUSED_RESULT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/dom_distiller_service_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/component_updater/chrome_component_updater_configurator .h" 5 #include "chrome/browser/component_updater/chrome_component_updater_configurator .h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 // Returns a task runner to run blocking tasks. The task runner continues to run 126 // Returns a task runner to run blocking tasks. The task runner continues to run
127 // after the browser shuts down, until the OS terminates the process. This 127 // after the browser shuts down, until the OS terminates the process. This
128 // imposes certain requirements for the code using the task runner, such as 128 // imposes certain requirements for the code using the task runner, such as
129 // not accessing any global browser state while the code is running. 129 // not accessing any global browser state while the code is running.
130 scoped_refptr<base::SequencedTaskRunner> 130 scoped_refptr<base::SequencedTaskRunner>
131 ChromeConfigurator::GetSequencedTaskRunner() const { 131 ChromeConfigurator::GetSequencedTaskRunner() const {
132 return content::BrowserThread::GetBlockingPool() 132 return content::BrowserThread::GetBlockingPool()
133 ->GetSequencedTaskRunnerWithShutdownBehavior( 133 ->GetSequencedTaskRunnerWithShutdownBehavior(
134 content::BrowserThread::GetBlockingPool()->GetSequenceToken(), 134 base::SequencedWorkerPool::GetSequenceToken(),
135 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); 135 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
136 } 136 }
137 137
138 } // namespace 138 } // namespace
139 139
140 scoped_refptr<update_client::Configurator> 140 scoped_refptr<update_client::Configurator>
141 MakeChromeComponentUpdaterConfigurator( 141 MakeChromeComponentUpdaterConfigurator(
142 const base::CommandLine* cmdline, 142 const base::CommandLine* cmdline,
143 net::URLRequestContextGetter* context_getter) { 143 net::URLRequestContextGetter* context_getter) {
144 return new ChromeConfigurator(cmdline, context_getter); 144 return new ChromeConfigurator(cmdline, context_getter);
145 } 145 }
146 146
147 } // namespace component_updater 147 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/dom_distiller_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698