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

Unified Diff: content/shell/shell_mac.mm

Issue 10857057: [content shell] rip out code that moves windows off screen during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « content/shell/shell_gtk.cc ('k') | content/shell/shell_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_mac.mm
diff --git a/content/shell/shell_mac.mm b/content/shell/shell_mac.mm
index 065bf9c47dba18f2ad7c98ecf48ccab10b1e2412..cf97720814223ae775a4afef159d15470994750d 100644
--- a/content/shell/shell_mac.mm
+++ b/content/shell/shell_mac.mm
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "base/command_line.h"
#include "base/logging.h"
#import "base/memory/scoped_nsobject.h"
#include "base/string_piece.h"
@@ -15,7 +14,6 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/shell/resource.h"
-#include "content/shell/shell_switches.h"
#include "googleurl/src/gurl.h"
#import "ui/base/cocoa/underlay_opengl_hosting_window.h"
@@ -180,10 +178,6 @@ void Shell::PlatformCreateWindow(int width, int height) {
NSClosableWindowMask |
NSMiniaturizableWindowMask |
NSResizableWindowMask;
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
- content_rect = NSOffsetRect(initial_window_bounds, -10000, -10000);
- style_mask = NSBorderlessWindowMask;
- }
CrShellWindow* window =
[[CrShellWindow alloc] initWithContentRect:content_rect
styleMask:style_mask
« no previous file with comments | « content/shell/shell_gtk.cc ('k') | content/shell/shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698