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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc

Issue 23332012: Add a private API method to install a webstore app from Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_manager_installer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/extensions/file_manager/file_browser_private_a pi.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a pi.h"
6 6
7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" 7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a pi_factory.h" 8 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a pi_factory.h"
9 #include "chrome/browser/chromeos/extensions/file_manager/private_api_dialog.h" 9 #include "chrome/browser/chromeos/extensions/file_manager/private_api_dialog.h"
10 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h" 10 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 extensions::FileBrowserPrivateFormatDeviceFunction>(); 90 extensions::FileBrowserPrivateFormatDeviceFunction>();
91 91
92 // Miscellaneous functions. 92 // Miscellaneous functions.
93 registry->RegisterFunction< 93 registry->RegisterFunction<
94 extensions::FileBrowserPrivateLogoutUserFunction>(); 94 extensions::FileBrowserPrivateLogoutUserFunction>();
95 registry->RegisterFunction< 95 registry->RegisterFunction<
96 extensions::FileBrowserPrivateGetPreferencesFunction>(); 96 extensions::FileBrowserPrivateGetPreferencesFunction>();
97 registry->RegisterFunction< 97 registry->RegisterFunction<
98 extensions::FileBrowserPrivateSetPreferencesFunction>(); 98 extensions::FileBrowserPrivateSetPreferencesFunction>();
99 registry->RegisterFunction< 99 registry->RegisterFunction<
100 extensions::FileBrowserPrivateInstallWebstoreItemFunction>();
101 registry->RegisterFunction<
100 extensions::FileBrowserPrivateZipSelectionFunction>(); 102 extensions::FileBrowserPrivateZipSelectionFunction>();
101 registry->RegisterFunction<extensions::FileBrowserPrivateZoomFunction>(); 103 registry->RegisterFunction<extensions::FileBrowserPrivateZoomFunction>();
104
102 event_router_->ObserveFileSystemEvents(); 105 event_router_->ObserveFileSystemEvents();
103 } 106 }
104 107
105 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { 108 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() {
106 } 109 }
107 110
108 void FileBrowserPrivateAPI::Shutdown() { 111 void FileBrowserPrivateAPI::Shutdown() {
109 event_router_->Shutdown(); 112 event_router_->Shutdown();
110 } 113 }
111 114
112 // static 115 // static
113 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { 116 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) {
114 return FileBrowserPrivateAPIFactory::GetForProfile(profile); 117 return FileBrowserPrivateAPIFactory::GetForProfile(profile);
115 } 118 }
116 119
117 } // namespace file_manager 120 } // namespace file_manager
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_manager_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698