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

Unified Diff: chrome/browser/nacl_host/nacl_browser_delegate_impl.cc

Issue 18006003: Consistently use notifications from component updater w/ on-demand PNaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sorin review 2 Created 7 years, 4 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
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_updater_observer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
diff --git a/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc b/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
index 9e17b2f524ab2d7e71179aa08d858653043613ef..eec61e5188f97faa0d447fb9eb4e08c7e1b6f90b 100644
--- a/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
+++ b/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
@@ -61,8 +61,10 @@ ppapi::host::HostFactory* NaClBrowserDelegateImpl::CreatePpapiHostFactory(
void NaClBrowserDelegateImpl::TryInstallPnacl(
const base::Callback<void(bool)>& installed) {
- ComponentUpdateService* cus = g_browser_process->component_updater();
PnaclComponentInstaller* pci =
g_browser_process->pnacl_component_installer();
- RequestFirstInstall(cus, pci, installed);
+ if (pci)
+ pci->RequestFirstInstall(installed);
+ else
+ installed.Run(false);
}
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_updater_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698