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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 7215035: ntp4: add app context menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: embolden first item Created 9 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/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 633faf7d6ca8aff3c54b44a91aa41b7f0e8b84fe..eb87371c4f27252489d9b3082af5da09a2c6291f 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -420,6 +420,11 @@ void AppLauncherHandler::HandleSetLaunchType(const ListValue* args) {
extensions_service_->GetExtensionById(extension_id, true);
CHECK(extension);
+ // Don't update the page; it already knows about the launch type change.
+ scoped_ptr<AutoReset<bool> > auto_reset;
csilv 2011/06/22 21:21:30 I assume that space is needed to prevent the the c
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewTabPage4))
+ auto_reset.reset(new AutoReset<bool>(&ignore_changes_, true));
+
extensions_service_->extension_prefs()->SetLaunchType(
extension_id,
static_cast<ExtensionPrefs::LaunchType>(

Powered by Google App Engine
This is Rietveld 408576698