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

Side by Side Diff: chrome/browser/extensions/extension_util.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 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/extensions/extension_util.h" 5 #include "chrome/browser/extensions/extension_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_sync_service.h" 10 #include "chrome/browser/extensions/extension_sync_service.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/common/extensions/extension.h"
13 #include "chrome/common/extensions/sync_helper.h" 12 #include "chrome/common/extensions/sync_helper.h"
13 #include "extensions/common/extension.h"
14 #include "extensions/common/manifest.h" 14 #include "extensions/common/manifest.h"
15 #include "extensions/common/manifest_handlers/incognito_info.h" 15 #include "extensions/common/manifest_handlers/incognito_info.h"
16 16
17 using extensions::Extension; 17 using extensions::Extension;
18 using extensions::ExtensionPrefs; 18 using extensions::ExtensionPrefs;
19 19
20 namespace extension_util { 20 namespace extension_util {
21 21
22 bool IsIncognitoEnabled(const std::string& extension_id, 22 bool IsIncognitoEnabled(const std::string& extension_id,
23 const ExtensionService* service) { 23 const ExtensionService* service) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return; 118 return;
119 119
120 service->extension_prefs()->SetAllowFileAccess(extension->id(), allow); 120 service->extension_prefs()->SetAllowFileAccess(extension->id(), allow);
121 121
122 bool extension_is_enabled = service->extensions()->Contains(extension->id()); 122 bool extension_is_enabled = service->extensions()->Contains(extension->id());
123 if (extension_is_enabled) 123 if (extension_is_enabled)
124 service->ReloadExtension(extension->id()); 124 service->ReloadExtension(extension->id());
125 } 125 }
126 126
127 } // namespace extension_util 127 } // namespace extension_util
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_uninstall_dialog.cc ('k') | chrome/browser/extensions/extension_warning_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698