Commit 074c15c2 authored by Alex Newcomer's avatar Alex Newcomer Committed by Commit Bot

cros: Removing un-used testing code

Just noticed this laying around, might aswell remove it.

Change-Id: I24f7df5c675902484bc9143f231820f3b9304311
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872792Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708392}
parent 1f3897c0
......@@ -26,38 +26,6 @@ namespace test {
namespace {
class CreateProfileHelper {
public:
CreateProfileHelper() : profile_(NULL) {}
Profile* CreateAsync() {
ProfileManager* profile_manager = g_browser_process->profile_manager();
base::FilePath temp_profile_dir =
profile_manager->user_data_dir().AppendASCII("Profile 1");
profile_manager->CreateProfileAsync(
temp_profile_dir,
base::Bind(&CreateProfileHelper::OnProfileCreated,
base::Unretained(this)),
base::string16(),
std::string());
run_loop_.Run();
return profile_;
}
private:
void OnProfileCreated(Profile* profile, Profile::CreateStatus status) {
if (status == Profile::CREATE_STATUS_INITIALIZED) {
profile_ = profile;
run_loop_.Quit();
}
}
base::RunLoop run_loop_;
Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(CreateProfileHelper);
};
// Create the icon image for the app-item with |id|.
// TODO(mukai): consolidate the implementation with
// ash/app_list/test/app_list_test_model.cc.
......@@ -84,11 +52,6 @@ AppListClientImpl* GetAppListClient() {
return client;
}
Profile* CreateSecondProfileAsync() {
CreateProfileHelper helper;
return helper.CreateAsync();
}
void PopulateDummyAppListItems(int n) {
AppListClientImpl* client = GetAppListClient();
Profile* profile = client->GetCurrentAppListProfile();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment