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

Unified Diff: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc

Issue 1198313003: Fix the browser match rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use scoped_ptr<Browser> instead. Created 5 years, 5 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
Index: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
diff --git a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
index 1bb6a04727eb1c98a26dc8b4867b5b773876e512..017213c5acae811fc1fd98a52296884c965dc105 100644
--- a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
+++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
@@ -58,8 +58,8 @@ TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) {
// Create a browser which we can close during the test.
Browser::CreateParams params(browser()->profile(),
browser()->host_desktop_type());
- scoped_ptr<Browser> first_browser(
- chrome::CreateBrowserWithTestWindowForParams(&params));
+ scoped_ptr<Browser> first_browser =
+ chrome::CreateBrowserWithTestWindowForParams(&params);
AddTab(first_browser.get(), GURL(chrome::kChromeUINewTabURL));
// Attach the crashed infobar to it.
@@ -76,8 +76,8 @@ TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) {
ASSERT_TRUE(infobar);
// Open another browser.
- scoped_ptr<Browser> opened_browser(
- chrome::CreateBrowserWithTestWindowForParams(&params));
+ scoped_ptr<Browser> opened_browser =
+ chrome::CreateBrowserWithTestWindowForParams(&params);
// Move the tab which is destroying the crash info bar to the new browser.
tab_strip->DetachWebContentsAt(0);

Powered by Google App Engine
This is Rietveld 408576698