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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_dialog_controller.cc

Issue 201203006: Move basic API permissions code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move moar things Created 6 years, 9 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/media_galleries/media_galleries_dialog_controller.h" 5 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 12 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
13 #include "chrome/browser/media_galleries/media_file_system_registry.h" 13 #include "chrome/browser/media_galleries/media_file_system_registry.h"
14 #include "chrome/browser/media_galleries/media_galleries_histograms.h" 14 #include "chrome/browser/media_galleries/media_galleries_histograms.h"
15 #include "chrome/browser/media_galleries/media_gallery_context_menu.h" 15 #include "chrome/browser/media_galleries/media_gallery_context_menu.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/chrome_select_file_policy.h" 17 #include "chrome/browser/ui/chrome_select_file_policy.h"
18 #include "chrome/common/extensions/permissions/media_galleries_permission.h"
19 #include "components/storage_monitor/storage_info.h" 18 #include "components/storage_monitor/storage_info.h"
20 #include "components/storage_monitor/storage_monitor.h" 19 #include "components/storage_monitor/storage_monitor.h"
21 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
22 #include "content/public/browser/web_contents_view.h" 21 #include "content/public/browser/web_contents_view.h"
23 #include "extensions/browser/extension_prefs.h" 22 #include "extensions/browser/extension_prefs.h"
24 #include "extensions/common/extension.h" 23 #include "extensions/common/extension.h"
24 #include "extensions/common/permissions/media_galleries_permission.h"
25 #include "extensions/common/permissions/permissions_data.h" 25 #include "extensions/common/permissions/permissions_data.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 #include "ui/base/models/simple_menu_model.h" 28 #include "ui/base/models/simple_menu_model.h"
29 #include "ui/base/text/bytes_formatting.h" 29 #include "ui/base/text/bytes_formatting.h"
30 30
31 using extensions::APIPermission; 31 using extensions::APIPermission;
32 using extensions::Extension; 32 using extensions::Extension;
33 using storage_monitor::StorageInfo; 33 using storage_monitor::StorageInfo;
34 using storage_monitor::StorageMonitor; 34 using storage_monitor::StorageMonitor;
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 return context_menu_.get(); 481 return context_menu_.get();
482 } 482 }
483 483
484 Profile* MediaGalleriesDialogController::GetProfile() { 484 Profile* MediaGalleriesDialogController::GetProfile() {
485 return Profile::FromBrowserContext(web_contents_->GetBrowserContext()); 485 return Profile::FromBrowserContext(web_contents_->GetBrowserContext());
486 } 486 }
487 487
488 // MediaGalleries dialog ------------------------------------------------------- 488 // MediaGalleries dialog -------------------------------------------------------
489 489
490 MediaGalleriesDialog::~MediaGalleriesDialog() {} 490 MediaGalleriesDialog::~MediaGalleriesDialog() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698