Index: chrome/browser/ui/webui/options/content_settings_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/options/content_settings_handler.cc (revision 124226) |
+++ chrome/browser/ui/webui/options/content_settings_handler.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -281,8 +281,8 @@ |
RegisterTitle(localized_strings, "contentSettingsPage", |
IDS_CONTENT_SETTINGS_TITLE); |
localized_strings->SetBoolean("enable_web_intents", |
- !CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kDisableWebIntents)); |
+ CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableWebIntents)); |
} |
void ContentSettingsHandler::Initialize() { |
@@ -435,9 +435,10 @@ |
void ContentSettingsHandler::UpdateExceptionsViewFromModel( |
ContentSettingsType type) { |
- // Don't update intents settings at this point. |
- // Turn on when enable_web_intents_tag is enabled. |
- if (type == CONTENT_SETTINGS_TYPE_INTENTS) |
+ // Skip updating intents unless it's enabled from the command line. |
+ if (type == CONTENT_SETTINGS_TYPE_INTENTS && |
+ !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableWebIntents)) |
return; |
switch (type) { |