summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 01:06:53 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 01:06:53 +0000
commit7eae79c419700110d4799ac7b22ebddf6c441284 (patch)
tree02d6ec393a5d0035c66445f269cbbfcb5c098793 /chrome
parentc347dffe61fb2b9a0bfceeceef414d10fab14551 (diff)
downloadchromium_src-7eae79c419700110d4799ac7b22ebddf6c441284.zip
chromium_src-7eae79c419700110d4799ac7b22ebddf6c441284.tar.gz
chromium_src-7eae79c419700110d4799ac7b22ebddf6c441284.tar.bz2
Fix build bustage:
- Apparently blank tabs must have NewTabUIURL as their URL. - flag wasn't initialized. Review URL: http://codereview.chromium.org/10721 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tabs/tab_strip_model_unittest.cc2
-rw-r--r--chrome/browser/window_sizer_unittest.cc10
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/tabs/tab_strip_model_unittest.cc b/chrome/browser/tabs/tab_strip_model_unittest.cc
index d438712..a755c47 100644
--- a/chrome/browser/tabs/tab_strip_model_unittest.cc
+++ b/chrome/browser/tabs/tab_strip_model_unittest.cc
@@ -992,7 +992,7 @@ class TabStripDummyDelegate : public TabStripModelDelegate {
virtual ~TabStripDummyDelegate() {}
// Overridden from TabStripModelDelegate:
- virtual GURL GetBlankTabURL() const { return GURL("about:blank"); }
+ virtual GURL GetBlankTabURL() const { return NewTabUIURL(); }
virtual void CreateNewStripWithContents(TabContents* contents,
const gfx::Point& creation_point) {}
virtual int GetDragActions() const { return 0; }
diff --git a/chrome/browser/window_sizer_unittest.cc b/chrome/browser/window_sizer_unittest.cc
index e837c42..826c176 100644
--- a/chrome/browser/window_sizer_unittest.cc
+++ b/chrome/browser/window_sizer_unittest.cc
@@ -274,7 +274,7 @@ TEST(WindowSizerTest, LastWindowBoundsCase) {
{ // normal, in the middle of the screen somewhere.
gfx::Rect window_bounds;
- bool maximized;
+ bool maximized = false;
GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
gfx::Rect(10, 10, 500, 400), false, LAST_ACTIVE,
&window_bounds, &maximized);
@@ -284,7 +284,7 @@ TEST(WindowSizerTest, LastWindowBoundsCase) {
{ // normal, but maximized
gfx::Rect window_bounds;
- bool maximized;
+ bool maximized = false;
GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
gfx::Rect(10, 10, 500, 400), true, LAST_ACTIVE,
&window_bounds, &maximized);
@@ -294,7 +294,7 @@ TEST(WindowSizerTest, LastWindowBoundsCase) {
{ // offset would put the new window offscreen at the bottom
gfx::Rect window_bounds;
- bool maximized;
+ bool maximized = false;
GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
gfx::Rect(10, 360, 500, 400), false, LAST_ACTIVE,
&window_bounds, &maximized);
@@ -304,7 +304,7 @@ TEST(WindowSizerTest, LastWindowBoundsCase) {
{ // offset would put the new window offscreen at the right
gfx::Rect window_bounds;
- bool maximized;
+ bool maximized = false;
GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
gfx::Rect(520, 10, 500, 400), false, LAST_ACTIVE,
&window_bounds, &maximized);
@@ -314,7 +314,7 @@ TEST(WindowSizerTest, LastWindowBoundsCase) {
{ // offset would put the new window offscreen at the bottom right
gfx::Rect window_bounds;
- bool maximized;
+ bool maximized = false;
GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
gfx::Rect(520, 360, 500, 400), false, LAST_ACTIVE,
&window_bounds, &maximized);