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>( |