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

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

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: int64_t to int64 Created 7 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
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_file_host.h » ('j') | chrome/browser/nacl_host/nacl_file_host.h » ('J')
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..fd982ac7cc73e23fe8e29f193979533fdfd58308 100644
--- a/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
+++ b/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
@@ -64,5 +64,8 @@ void NaClBrowserDelegateImpl::TryInstallPnacl(
ComponentUpdateService* cus = g_browser_process->component_updater();
PnaclComponentInstaller* pci =
g_browser_process->pnacl_component_installer();
- RequestFirstInstall(cus, pci, installed);
+ if (cus && pci)
+ RequestFirstInstall(cus, pci, installed);
+ else
+ installed.Run(false);
}
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_file_host.h » ('j') | chrome/browser/nacl_host/nacl_file_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698