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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 10630021: Modify experimental identity flow to display scope descriptions and details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 4a3a83afe9eaa054277e6ef8ba91db0831e51185..470512d23c96e977f8fafa1ee42858d2300b266a 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -885,12 +885,12 @@ void ExtensionService::DisableExtension(
}
void ExtensionService::GrantPermissionsAndEnableExtension(
- const Extension* extension) {
+ const Extension* extension, bool record_oauth2_grant) {
CHECK(extension);
RecordPermissionMessagesHistogram(
extension, "Extensions.Permissions_ReEnable");
extensions::PermissionsUpdater perms_updater(profile());
- perms_updater.GrantActivePermissions(extension);
+ perms_updater.GrantActivePermissions(extension, record_oauth2_grant);
extension_prefs_->SetDidExtensionEscalatePermissions(extension, false);
EnableExtension(extension->id());
}

Powered by Google App Engine
This is Rietveld 408576698