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

Unified Diff: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc

Issue 2547923005: Fix mac_views_browser compile after r435575 (extension_uninstall_dialog_view_browsertest.cc) (Closed)
Patch Set: Simpler Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc
diff --git a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc
index 166413349501ab0918a2437799c5cdb1ef5a4241..5e0fbcb4aef207f297d91e469e800ca8a3134369 100644
--- a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc
+++ b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc
@@ -15,12 +15,6 @@
#include "extensions/common/extension_builder.h"
#include "extensions/common/value_builder.h"
-#if defined(OS_MACOSX)
-#include "base/command_line.h"
-#include "chrome/browser/ui/browser_dialogs.h"
-#include "content/public/common/content_switches.h"
-#endif
-
namespace {
scoped_refptr<extensions::Extension> BuildTestExtension() {
@@ -60,17 +54,11 @@ class TestExtensionUninstallDialogDelegate
typedef InProcessBrowserTest ExtensionUninstallDialogViewBrowserTest;
-// Test that ExtensionUninstallDialog cancels the uninstall if the aura::Window
-// which is passed to ExtensionUninstallDialog::Create() is destroyed before
+// Test that ExtensionUninstallDialog cancels the uninstall if the Window which
+// is passed to ExtensionUninstallDialog::Create() is destroyed before
// ExtensionUninstallDialogDelegateView is created.
IN_PROC_BROWSER_TEST_F(ExtensionUninstallDialogViewBrowserTest,
TrackParentWindowDestruction) {
-#if defined(OS_MACOSX)
- base::CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(switches::kEnableFeatures,
- chrome::kMacViewsWebUIDialogs.name);
-#endif
-
scoped_refptr<extensions::Extension> extension(BuildTestExtension());
extensions::ExtensionSystem::Get(browser()->profile())->extension_service()
->AddExtension(extension.get());
@@ -91,17 +79,11 @@ IN_PROC_BROWSER_TEST_F(ExtensionUninstallDialogViewBrowserTest,
EXPECT_TRUE(delegate.canceled());
}
-// Test that ExtensionUninstallDialog cancels the uninstall if the aura::Window
-// which is passed to ExtensionUninstallDialog::Create() is destroyed after
+// Test that ExtensionUninstallDialog cancels the uninstall if the Window which
+// is passed to ExtensionUninstallDialog::Create() is destroyed after
// ExtensionUninstallDialogDelegateView is created.
IN_PROC_BROWSER_TEST_F(ExtensionUninstallDialogViewBrowserTest,
TrackParentWindowDestructionAfterViewCreation) {
-#if defined(OS_MACOSX)
- base::CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(switches::kEnableFeatures,
- chrome::kMacViewsWebUIDialogs.name);
-#endif
-
scoped_refptr<extensions::Extension> extension(BuildTestExtension());
extensions::ExtensionSystem::Get(browser()->profile())->extension_service()
->AddExtension(extension.get());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698