| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/version.h" | 9 #include "base/version.h" |
| 10 #include "base/win/win_util.h" | 10 #include "base/win/win_util.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 scoped_refptr<base::TaskRunner> task_runner( | 264 scoped_refptr<base::TaskRunner> task_runner( |
| 265 content::BrowserThread::GetMessageLoopProxyForThread( | 265 content::BrowserThread::GetMessageLoopProxyForThread( |
| 266 content::BrowserThread::FILE)); | 266 content::BrowserThread::FILE)); |
| 267 BeginUpdateCheck(task_runner, install_if_newer, GetElevationParent(), | 267 BeginUpdateCheck(task_runner, install_if_newer, GetElevationParent(), |
| 268 base::Bind(&VersionUpdaterWin::OnUpdateCheckResults, | 268 base::Bind(&VersionUpdaterWin::OnUpdateCheckResults, |
| 269 weak_factory_.GetWeakPtr())); | 269 weak_factory_.GetWeakPtr())); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace | 272 } // namespace |
| 273 | 273 |
| 274 VersionUpdater* VersionUpdater::Create() { | 274 VersionUpdater* VersionUpdater::Create(content::BrowserContext* /* context */) { |
| 275 return new VersionUpdaterWin; | 275 return new VersionUpdaterWin; |
| 276 } | 276 } |
| OLD | NEW |