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

Unified Diff: chrome/browser/ui/app_list/app_list_service_unittest.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/app_list/app_list_service_unittest.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_unittest.cc b/chrome/browser/ui/app_list/app_list_service_unittest.cc
index eca8b1dfc64b142841b74dae7bdcc0a3355a3fd6..7b342d0dfe9dacad83924fd4b1549ebc615dab31 100644
--- a/chrome/browser/ui/app_list/app_list_service_unittest.cc
+++ b/chrome/browser/ui/app_list/app_list_service_unittest.cc
@@ -22,7 +22,7 @@
class TestingAppListServiceImpl : public AppListServiceImpl {
public:
- TestingAppListServiceImpl(const CommandLine& command_line,
+ TestingAppListServiceImpl(const base::CommandLine& command_line,
PrefService* local_state,
scoped_ptr<ProfileStore> profile_store)
: AppListServiceImpl(command_line, local_state, profile_store.Pass()),
@@ -80,11 +80,11 @@ class AppListServiceUnitTest : public testing::Test {
AppListServiceUnitTest() {}
void SetUp() override {
- SetupWithCommandLine(CommandLine(CommandLine::NO_PROGRAM));
+ SetupWithCommandLine(base::CommandLine(base::CommandLine::NO_PROGRAM));
}
protected:
- void SetupWithCommandLine(const CommandLine& command_line) {
+ void SetupWithCommandLine(const base::CommandLine& command_line) {
user_data_dir_ = base::FilePath(FILE_PATH_LITERAL("udd"));
profile1_.reset(
new FakeProfile("p1", user_data_dir_.AppendASCII("profile1")));
@@ -177,7 +177,7 @@ TEST_F(AppListServiceUnitTest, SwitchingProfilesPersists) {
}
TEST_F(AppListServiceUnitTest, EnableViaCommandLineFlag) {
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitch(switches::kEnableAppList);
SetupWithCommandLine(command_line);
service_->PerformStartupChecks(profile1_.get());
@@ -185,7 +185,7 @@ TEST_F(AppListServiceUnitTest, EnableViaCommandLineFlag) {
}
TEST_F(AppListServiceUnitTest, DisableViaCommandLineFlag) {
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitch(switches::kResetAppListInstallState);
SetupWithCommandLine(command_line);
service_->PerformStartupChecks(profile1_.get());
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | chrome/browser/ui/app_list/search/search_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698