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

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

Issue 9244005: Move the `privacy` extension API out of experimental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: License. Created 8 years, 11 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 | « chrome/browser/extensions/extension_preference_api.cc ('k') | chrome/common/common_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_preference_apitest.cc
diff --git a/chrome/browser/extensions/extension_preference_apitest.cc b/chrome/browser/extensions/extension_preference_apitest.cc
index c5b2760d713c430cef7e6adf2acc8566b3621491..59ffdcd09ed3d70a2a5907d369f35ef8c19abbdc 100644
--- a/chrome/browser/extensions/extension_preference_apitest.cc
+++ b/chrome/browser/extensions/extension_preference_apitest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -12,9 +12,6 @@
#include "webkit/plugins/npapi/mock_plugin_list.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceApi) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
PrefService* pref_service = browser()->profile()->GetPrefs();
pref_service->SetBoolean(prefs::kAlternateErrorPagesEnabled, false);
pref_service->SetBoolean(prefs::kAutofillEnabled, false);
@@ -46,9 +43,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceApi) {
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferencePersistentIncognito) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetBoolean(prefs::kBlockThirdPartyCookies, false);
@@ -75,16 +69,10 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferencePersistentIncognito) {
// Flakily times out: http://crbug.com/106144
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_PreferenceIncognitoDisabled) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
EXPECT_FALSE(RunExtensionTest("preference/persistent_incognito"));
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceSessionOnlyIncognito) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetBoolean(prefs::kBlockThirdPartyCookies, false);
@@ -109,9 +97,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceSessionOnlyIncognito) {
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceClear) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
PrefService* pref_service = browser()->profile()->GetPrefs();
pref_service->SetBoolean(prefs::kBlockThirdPartyCookies, true);
@@ -125,9 +110,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceClear) {
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PreferenceOnChange) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableExperimentalExtensionApis);
-
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetBoolean(prefs::kBlockThirdPartyCookies, false);
« no previous file with comments | « chrome/browser/extensions/extension_preference_api.cc ('k') | chrome/common/common_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698