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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_updater_observer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return chrome::VersionInfo().CreateVersionString(); 54 return chrome::VersionInfo().CreateVersionString();
55 } 55 }
56 56
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();
65 PnaclComponentInstaller* pci = 64 PnaclComponentInstaller* pci =
66 g_browser_process->pnacl_component_installer(); 65 g_browser_process->pnacl_component_installer();
67 RequestFirstInstall(cus, pci, installed); 66 if (pci)
67 pci->RequestFirstInstall(installed);
68 else
69 installed.Run(false);
68 } 70 }
OLDNEW
« 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