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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/nacl_host/nacl_browser_delegate_impl.h" 5 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" 9 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
10 #include "chrome/browser/nacl_host/nacl_infobar_delegate.h" 10 #include "chrome/browser/nacl_host/nacl_infobar_delegate.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ppapi::host::HostFactory* NaClBrowserDelegateImpl::CreatePpapiHostFactory( 57 ppapi::host::HostFactory* NaClBrowserDelegateImpl::CreatePpapiHostFactory(
58 content::BrowserPpapiHost* ppapi_host) { 58 content::BrowserPpapiHost* ppapi_host) {
59 return new chrome::ChromeBrowserPepperHostFactory(ppapi_host); 59 return new chrome::ChromeBrowserPepperHostFactory(ppapi_host);
60 } 60 }
61 61
62 void NaClBrowserDelegateImpl::TryInstallPnacl( 62 void NaClBrowserDelegateImpl::TryInstallPnacl(
63 const base::Callback<void(bool)>& installed) { 63 const base::Callback<void(bool)>& installed) {
64 ComponentUpdateService* cus = g_browser_process->component_updater(); 64 ComponentUpdateService* cus = g_browser_process->component_updater();
65 PnaclComponentInstaller* pci = 65 PnaclComponentInstaller* pci =
66 g_browser_process->pnacl_component_installer(); 66 g_browser_process->pnacl_component_installer();
67 RequestFirstInstall(cus, pci, installed); 67 if (cus && pci)
68 RequestFirstInstall(cus, pci, installed);
69 else
70 installed.Run(false);
68 } 71 }
OLDNEW
« 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