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

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

Issue 141473004: Random cleanup for c/b/cros/extensions/file_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 (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"
10 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h"
11 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste m.h"
12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h"
13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_mount.h"
14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
15 #include "chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h"
16 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
17 #include "chrome/browser/extensions/extension_function_registry.h"
18 9
19 namespace file_manager { 10 namespace file_manager {
20 11
21 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile) 12 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile)
22 : event_router_(new EventRouter(profile)) { 13 : event_router_(new EventRouter(profile)) {
23 event_router_->ObserveFileSystemEvents(); 14 event_router_->ObserveFileSystemEvents();
24 } 15 }
25 16
26 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() { 17 FileBrowserPrivateAPI::~FileBrowserPrivateAPI() {
27 } 18 }
28 19
29 void FileBrowserPrivateAPI::Shutdown() { 20 void FileBrowserPrivateAPI::Shutdown() {
30 event_router_->Shutdown(); 21 event_router_->Shutdown();
31 } 22 }
32 23
33 // static 24 // static
34 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) { 25 FileBrowserPrivateAPI* FileBrowserPrivateAPI::Get(Profile* profile) {
35 return FileBrowserPrivateAPIFactory::GetForProfile(profile); 26 return FileBrowserPrivateAPIFactory::GetForProfile(profile);
36 } 27 }
37 28
38 } // namespace file_manager 29 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698