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

Unified Diff: chrome/browser/google/google_update_win.h

Issue 2952133002: Use task runner in version_updater_win.cc. (Closed)
Patch Set: fix nit Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/google/google_update_win.h
diff --git a/chrome/browser/google/google_update_win.h b/chrome/browser/google/google_update_win.h
index 33760ca2de5338017075da3875b12b241917cee5..44bbb60ac0f5af6624274e2feca82d69aa0e9def 100644
--- a/chrome/browser/google/google_update_win.h
+++ b/chrome/browser/google/google_update_win.h
@@ -14,7 +14,7 @@
#include "ui/gfx/native_widget_types.h"
namespace base {
-class SingleThreadTaskRunner;
+class SequencedTaskRunner;
} // namespace base
// These values are used for a histogram. Do not reorder.
@@ -87,14 +87,13 @@ class UpdateCheckDelegate {
UpdateCheckDelegate() {}
};
-// Begins an asynchronous update check on |task_runner|. If a new version is
+// Begins an asynchronous update check. If a new version is
// available and |install_update_if_possible| is true, the new version will be
// automatically downloaded and installed. |elevation_window| is the window
// which should own any necessary elevation UI. Methods on |delegate| will be
// invoked on the caller's thread to provide feedback on the operation, with
// messages localized to |locale| if possible.
void BeginUpdateCheck(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const std::string& locale,
bool install_update_if_possible,
gfx::AcceleratedWidget elevation_window,
@@ -110,4 +109,7 @@ typedef base::Callback<HRESULT(base::win::ScopedComPtr<IGoogleUpdate3Web>*)>
void SetGoogleUpdateFactoryForTesting(
const GoogleUpdate3ClassFactory& google_update_factory);
+void SetUpdateDriverTaskRunnerForTesting(
+ base::SequencedTaskRunner* task_runner);
+
#endif // CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_
« no previous file with comments | « no previous file | chrome/browser/google/google_update_win.cc » ('j') | chrome/browser/google/google_update_win_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698