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

Side by Side Diff: chrome/browser/component_updater/pnacl/pnacl_component_installer.cc

Issue 15908002: Differential updates for components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync to LKGR revision 207804. Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // for now). TODO(jvoung): we need notifications if someone surfed to a 274 // for now). TODO(jvoung): we need notifications if someone surfed to a
275 // Pnacl webpage and Pnacl was just installed at this time. They should 275 // Pnacl webpage and Pnacl was just installed at this time. They should
276 // then be able to reload the page and retry (or something). 276 // then be able to reload the page and retry (or something).
277 // See: http://code.google.com/p/chromium/issues/detail?id=107438 277 // See: http://code.google.com/p/chromium/issues/detail?id=107438
278 set_current_version(version); 278 set_current_version(version);
279 279
280 OverrideDirPnaclComponent(path); 280 OverrideDirPnaclComponent(path);
281 return true; 281 return true;
282 } 282 }
283 283
284 bool PnaclComponentInstaller::GetInstalledFile(
285 const std::string& file, base::FilePath* installed_file) {
286 return false;
287 }
288
284 namespace { 289 namespace {
285 290
286 void DoCheckForUpdate(ComponentUpdateService* cus, 291 void DoCheckForUpdate(ComponentUpdateService* cus,
287 const CrxComponent& pnacl) { 292 const CrxComponent& pnacl) {
288 if (cus->CheckForUpdateSoon(pnacl) != ComponentUpdateService::kOk) { 293 if (cus->CheckForUpdateSoon(pnacl) != ComponentUpdateService::kOk) {
289 LOG(WARNING) << "Pnacl check for update failed."; 294 LOG(WARNING) << "Pnacl check for update failed.";
290 } 295 }
291 } 296 }
292 297
293 // Finally, do the registration with the right version number. 298 // Finally, do the registration with the right version number.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // No need to check the commandline flags again here. 415 // No need to check the commandline flags again here.
411 // We could only have gotten here after RegisterPnaclComponent 416 // We could only have gotten here after RegisterPnaclComponent
412 // found --enable-pnacl, since that is where we create the profile_observer_, 417 // found --enable-pnacl, since that is where we create the profile_observer_,
413 // which in turn calls ReRegisterPnacl. 418 // which in turn calls ReRegisterPnacl.
414 DCHECK(per_user_); 419 DCHECK(per_user_);
415 // Figure out profile information, before proceeding to look for files. 420 // Figure out profile information, before proceeding to look for files.
416 BrowserThread::PostTask( 421 BrowserThread::PostTask(
417 BrowserThread::UI, FROM_HERE, 422 BrowserThread::UI, FROM_HERE,
418 base::Bind(&GetProfileInformation, this)); 423 base::Bind(&GetProfileInformation, this));
419 } 424 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698