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

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

Issue 7776001: ntp4: improved app install, try 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix trash change Created 9 years, 4 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_install_ui.cc
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 0717acd7bedda56e47625d2acced774b713bce99..34d2e9c2fd067ecf479166d725b29e5543a05deb 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -235,8 +235,12 @@ void ExtensionInstallUI::OpenAppInstalledNTP(Browser* browser,
"%s#app-id=%s", chrome::kChromeUINewTabURL, app_id.c_str());
Rick Byers 2011/08/29 16:01:00 Why do you still need the code for setting and rea
Evan Stade 2011/08/29 18:15:16 hmm. I tried to do what you're suggesting and it d
browser::NavigateParams params =
browser->GetSingletonTabNavigateParams(GURL(url));
- params.path_behavior = browser::NavigateParams::IGNORE_AND_NAVIGATE;
browser::Navigate(&params);
+
+ NotificationService::current()->Notify(
+ chrome::NOTIFICATION_APP_INSTALLED_TO_NTP,
+ Source<TabContents>(params.target_contents->tab_contents()),
+ Details<const std::string>(&app_id));
}
// static

Powered by Google App Engine
This is Rietveld 408576698