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

Unified Diff: content/shell/shell_win.cc

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_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_win.cc
diff --git a/content/shell/shell_win.cc b/content/shell/shell_win.cc
index 125887e3f2a3f9c175071215b9cee178d97f961a..9b88b6164aeba14ddd2f48af1d8c90f3c38327fe 100644
--- a/content/shell/shell_win.cc
+++ b/content/shell/shell_win.cc
@@ -9,13 +9,11 @@
#include <io.h>
#include <windows.h>
-#include "base/command_line.h"
#include "base/utf_string_conversions.h"
#include "base/win/wrapped_window_proc.h"
#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 "ui/base/win/hwnd_util.h"
namespace {
@@ -155,13 +153,8 @@ void Shell::SizeTo(int width, int height) {
// Add space for the url bar.
window_height += kURLBarHeight;
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
- SetWindowPos(window_, NULL, -window_width, -window_height,
- window_width, window_height, SWP_NOZORDER);
- } else {
- SetWindowPos(window_, NULL, 0, 0, window_width, window_height,
- SWP_NOMOVE | SWP_NOZORDER);
- }
+ SetWindowPos(window_, NULL, 0, 0, window_width, window_height,
+ SWP_NOMOVE | SWP_NOZORDER);
}
void Shell::PlatformResizeSubViews() {
« no previous file with comments | « content/shell/shell_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698