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

Unified Diff: chrome/browser/history/top_sites_unittest.cc

Issue 8561031: Replace ScopedCommandLineOverride with TestSuite listener. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last nit from Pawel. Created 9 years, 1 month 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/history/top_sites_unittest.cc
diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
index 074dee516cf0af695e99abc9b545e21220a68dd3..bc1c1d6e37ceb47a269bbe03dc4caa1b09c36d60 100644
--- a/chrome/browser/history/top_sites_unittest.cc
+++ b/chrome/browser/history/top_sites_unittest.cc
@@ -4,7 +4,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/command_line.h"
#include "base/file_util.h"
#include "base/format_macros.h"
#include "base/path_service.h"
@@ -134,8 +133,7 @@ class TopSitesTest : public HistoryUnitTestBase {
public:
TopSitesTest()
: ui_thread_(BrowserThread::UI, &message_loop_),
- db_thread_(BrowserThread::DB, &message_loop_),
- original_command_line_(*CommandLine::ForCurrentProcess()) {
+ db_thread_(BrowserThread::DB, &message_loop_) {
}
virtual void SetUp() {
@@ -149,7 +147,6 @@ class TopSitesTest : public HistoryUnitTestBase {
virtual void TearDown() {
profile_.reset();
- *CommandLine::ForCurrentProcess() = original_command_line_;
}
// Returns true if history and top sites should be created in SetUp.
@@ -323,7 +320,6 @@ class TopSitesTest : public HistoryUnitTestBase {
content::TestBrowserThread db_thread_;
scoped_ptr<TestingProfile> profile_;
CancelableRequestConsumer consumer_;
- CommandLine original_command_line_;
DISALLOW_COPY_AND_ASSIGN(TopSitesTest);
}; // Class TopSitesTest

Powered by Google App Engine
This is Rietveld 408576698