OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/string_util.h" | 5 #include "base/string_util.h" |
6 #include "chrome/browser/search/search.h" | 6 #include "chrome/browser/search/search.h" |
7 #include "chrome/browser/task_manager/task_manager.h" | 7 #include "chrome/browser/task_manager/task_manager.h" |
8 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" | 8 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 content::WindowedNotificationObserver nav_observer( | 420 content::WindowedNotificationObserver nav_observer( |
421 content::NOTIFICATION_NAV_ENTRY_COMMITTED, | 421 content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
422 content::NotificationService::AllSources()); | 422 content::NotificationService::AllSources()); |
423 omnibox()->model()->OnControlKeyChanged(true); | 423 omnibox()->model()->OnControlKeyChanged(true); |
424 browser()->window()->GetLocationBar()->AcceptInput(); | 424 browser()->window()->GetLocationBar()->AcceptInput(); |
425 nav_observer.Wait(); | 425 nav_observer.Wait(); |
426 // example.com redirects to iana. | 426 // example.com redirects to iana. |
427 EXPECT_TRUE(GetActiveTabURL().DomainIs("example.com") || | 427 EXPECT_TRUE(GetActiveTabURL().DomainIs("example.com") || |
428 GetActiveTabURL().DomainIs("iana.org")); | 428 GetActiveTabURL().DomainIs("iana.org")); |
429 } | 429 } |
OLD | NEW |