#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
#include "base/command_line.h"
-#include "base/file_util.h"
+#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
return;
loaded_ = true;
quit_ = true;
- if (runner_)
+ if (runner_.get())
runner_->Quit();
}
virtual void OnKioskAppDataLoadFailure(const std::string& app_id) OVERRIDE {
loaded_ = false;
quit_ = true;
- if (runner_)
+ if (runner_.get())
runner_->Quit();
}
// Remove the app now.
manager()->RemoveApp(kTestLocalFsKioskApp);
- content::BrowserThread::GetBlockingPool()->FlushForTesting();
+ content::RunAllBlockingPoolTasksUntilIdle();
manager()->GetApps(&apps);
ASSERT_EQ(0u, apps.size());
EXPECT_FALSE(base::PathExists(crx_path));
// Remove the app now.
manager()->RemoveApp(kTestLocalFsKioskApp);
- content::BrowserThread::GetBlockingPool()->FlushForTesting();
+ content::RunAllBlockingPoolTasksUntilIdle();
manager()->GetApps(&apps);
ASSERT_EQ(0u, apps.size());
// Verify both v1 and v2 crx files are removed.