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

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

Issue 510943003: Register granting of previously withheld permissions as a permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add initialization calls before granting permissions Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/unpacked_installer.h" 5 #include "chrome/browser/extensions/unpacked_installer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 error, 302 error,
303 service_weak_->profile(), 303 service_weak_->profile(),
304 be_noisy_on_failure_); 304 be_noisy_on_failure_);
305 } 305 }
306 } 306 }
307 307
308 void UnpackedInstaller::InstallExtension() { 308 void UnpackedInstaller::InstallExtension() {
309 DCHECK_CURRENTLY_ON(BrowserThread::UI); 309 DCHECK_CURRENTLY_ON(BrowserThread::UI);
310 310
311 PermissionsUpdater perms_updater(service_weak_->profile()); 311 PermissionsUpdater perms_updater(service_weak_->profile());
312 perms_updater.InitializePermissions(extension());
not at google - send to devlin 2014/08/28 03:18:46 Ditto.
312 perms_updater.GrantActivePermissions(extension()); 313 perms_updater.GrantActivePermissions(extension());
313 314
314 service_weak_->OnExtensionInstalled( 315 service_weak_->OnExtensionInstalled(
315 extension(), syncer::StringOrdinal(), kInstallFlagInstallImmediately); 316 extension(), syncer::StringOrdinal(), kInstallFlagInstallImmediately);
316 } 317 }
317 318
318 } // namespace extensions 319 } // namespace extensions
OLDNEW
« chrome/browser/extensions/crx_installer.cc ('K') | « chrome/browser/extensions/crx_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698