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

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

Issue 10912101: Fix crash in extension NavigationObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/navigation_observer.cc
diff --git a/chrome/browser/extensions/navigation_observer.cc b/chrome/browser/extensions/navigation_observer.cc
index 5cd8956c90fadd9cc7905ab70b822703fd04367c..cc5f2cbe68e631c4b74e0a852955aa0da5f5acc6 100644
--- a/chrome/browser/extensions/navigation_observer.cc
+++ b/chrome/browser/extensions/navigation_observer.cc
@@ -91,11 +91,12 @@ void NavigationObserver::InstallUIProceed() {
in_progress_prompt_extension_id_ = "";
in_progress_prompt_navigation_controller_ = NULL;
+ bool record_oauth2_grant = extension_install_prompt_->record_oauth2_grant();
extension_install_prompt_.reset();
// Grant permissions, re-enable the extension, and then reload the tab.
extension_service->GrantPermissionsAndEnableExtension(
- extension, extension_install_prompt_->record_oauth2_grant());
+ extension, record_oauth2_grant);
nav_controller->Reload(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698