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 "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" | 5 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // for now). TODO(jvoung): we need notifications if someone surfed to a | 299 // for now). TODO(jvoung): we need notifications if someone surfed to a |
300 // Pnacl webpage and Pnacl was just installed at this time. They should | 300 // Pnacl webpage and Pnacl was just installed at this time. They should |
301 // then be able to reload the page and retry (or something). | 301 // then be able to reload the page and retry (or something). |
302 // See: http://code.google.com/p/chromium/issues/detail?id=107438 | 302 // See: http://code.google.com/p/chromium/issues/detail?id=107438 |
303 set_current_version(version); | 303 set_current_version(version); |
304 | 304 |
305 PathService::Override(chrome::DIR_PNACL_COMPONENT, path); | 305 PathService::Override(chrome::DIR_PNACL_COMPONENT, path); |
306 return true; | 306 return true; |
307 } | 307 } |
308 | 308 |
| 309 bool PnaclComponentInstaller::GetInstalledFile( |
| 310 const std::string& file, base::FilePath* installed_file) { |
| 311 return false; |
| 312 } |
| 313 |
309 namespace { | 314 namespace { |
310 | 315 |
311 void DoCheckForUpdate(ComponentUpdateService* cus, | 316 void DoCheckForUpdate(ComponentUpdateService* cus, |
312 const CrxComponent& pnacl) { | 317 const CrxComponent& pnacl) { |
313 if (cus->CheckForUpdateSoon(pnacl) != ComponentUpdateService::kOk) { | 318 if (cus->CheckForUpdateSoon(pnacl) != ComponentUpdateService::kOk) { |
314 LOG(WARNING) << "Pnacl check for update failed."; | 319 LOG(WARNING) << "Pnacl check for update failed."; |
315 } | 320 } |
316 } | 321 } |
317 | 322 |
318 // Finally, do the registration with the right version number. | 323 // Finally, do the registration with the right version number. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 // No need to check the commandline flags again here. | 438 // No need to check the commandline flags again here. |
434 // We could only have gotten here after RegisterPnaclComponent | 439 // We could only have gotten here after RegisterPnaclComponent |
435 // found --enable-pnacl, since that is where we create the profile_observer_, | 440 // found --enable-pnacl, since that is where we create the profile_observer_, |
436 // which in turn calls ReRegisterPnacl. | 441 // which in turn calls ReRegisterPnacl. |
437 DCHECK(per_user_); | 442 DCHECK(per_user_); |
438 // Figure out profile information, before proceeding to look for files. | 443 // Figure out profile information, before proceeding to look for files. |
439 BrowserThread::PostTask( | 444 BrowserThread::PostTask( |
440 BrowserThread::UI, FROM_HERE, | 445 BrowserThread::UI, FROM_HERE, |
441 base::Bind(&GetProfileInformation, this)); | 446 base::Bind(&GetProfileInformation, this)); |
442 } | 447 } |
OLD | NEW |