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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.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: sync Created 8 years, 5 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/extensions/api/webstore_private/webstore_private_api.h" 5 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 } 399 }
400 400
401 void BeginInstallWithManifestFunction::InstallUIProceed() { 401 void BeginInstallWithManifestFunction::InstallUIProceed() {
402 // This gets cleared in CrxInstaller::ConfirmInstall(). TODO(asargent) - in 402 // This gets cleared in CrxInstaller::ConfirmInstall(). TODO(asargent) - in
403 // the future we may also want to add time-based expiration, where a whitelist 403 // the future we may also want to add time-based expiration, where a whitelist
404 // entry is only valid for some number of minutes. 404 // entry is only valid for some number of minutes.
405 scoped_ptr<WebstoreInstaller::Approval> approval( 405 scoped_ptr<WebstoreInstaller::Approval> approval(
406 WebstoreInstaller::Approval::CreateWithNoInstallPrompt( 406 WebstoreInstaller::Approval::CreateWithNoInstallPrompt(
407 profile(), id_, parsed_manifest_.Pass())); 407 profile(), id_, parsed_manifest_.Pass()));
408 approval->use_app_installed_bubble = use_app_installed_bubble_; 408 approval->use_app_installed_bubble = use_app_installed_bubble_;
409 approval->record_oauth2_grant = install_prompt_->record_oauth2_grant();
409 g_pending_approvals.Get().PushApproval(approval.Pass()); 410 g_pending_approvals.Get().PushApproval(approval.Pass());
410 411
411 SetResult(ERROR_NONE); 412 SetResult(ERROR_NONE);
412 SendResponse(true); 413 SendResponse(true);
413 414
414 // The Permissions_Install histogram is recorded from the ExtensionService 415 // The Permissions_Install histogram is recorded from the ExtensionService
415 // for all extension installs, so we only need to record the web store 416 // for all extension installs, so we only need to record the web store
416 // specific histogram here. 417 // specific histogram here.
417 ExtensionService::RecordPermissionMessagesHistogram( 418 ExtensionService::RecordPermissionMessagesHistogram(
418 dummy_extension_, "Extensions.Permissions_WebStoreInstall"); 419 dummy_extension_, "Extensions.Permissions_WebStoreInstall");
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Matched with a Release in OnGpuInfoUpdate. 632 // Matched with a Release in OnGpuInfoUpdate.
632 AddRef(); 633 AddRef();
633 634
634 manager->AddObserver(this); 635 manager->AddObserver(this);
635 manager->RequestCompleteGpuInfoIfNeeded(); 636 manager->RequestCompleteGpuInfoIfNeeded();
636 } 637 }
637 return true; 638 return true;
638 } 639 }
639 640
640 } // namespace extensions 641 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698