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

Side by Side Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/views/apps/app_info_dialog/app_info_permissions_pane l.h" 5 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_pane l.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/app_load_service.h"
11 #include "apps/saved_files_service.h" 10 #include "apps/saved_files_service.h"
12 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "chrome/browser/apps/app_load_service.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
17 #include "extensions/browser/api/device_permissions_manager.h" 17 #include "extensions/browser/api/device_permissions_manager.h"
18 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
19 #include "extensions/common/permissions/api_permission.h" 19 #include "extensions/common/permissions/api_permission.h"
20 #include "extensions/common/permissions/permissions_data.h" 20 #include "extensions/common/permissions/permissions_data.h"
21 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
22 #include "ui/base/resource/resource_bundle.h" 22 #include "ui/base/resource/resource_bundle.h"
23 #include "ui/gfx/text_constants.h" 23 #include "ui/gfx/text_constants.h"
24 #include "ui/resources/grit/ui_resources.h" 24 #include "ui/resources/grit/ui_resources.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 return extensions::DevicePermissionsManager::Get(profile_) 331 return extensions::DevicePermissionsManager::Get(profile_)
332 ->GetPermissionMessageStrings(app_->id()); 332 ->GetPermissionMessageStrings(app_->id());
333 } 333 }
334 334
335 void AppInfoPermissionsPanel::RevokeDevicePermissions() { 335 void AppInfoPermissionsPanel::RevokeDevicePermissions() {
336 extensions::DevicePermissionsManager::Get(profile_)->Clear(app_->id()); 336 extensions::DevicePermissionsManager::Get(profile_)->Clear(app_->id());
337 apps::AppLoadService::Get(profile_)->RestartApplicationIfRunning(app_->id()); 337 apps::AppLoadService::Get(profile_)->RestartApplicationIfRunning(app_->id());
338 338
339 Close(); 339 Close();
340 } 340 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698