Commit 2e280d57 authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

Remove 1.5 year old cleanup from c_b_main_android.cc

R=thakis@chromium.org

Bug: 499415, 689520
Change-Id: I74dac5b0113def0b2c61bcd584e2588174941d4a
Reviewed-on: https://chromium-review.googlesource.com/582147Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488775}
parent 7e15618d
......@@ -7,7 +7,6 @@
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/task_scheduler/post_task.h"
......@@ -30,16 +29,6 @@
#include "ui/base/resource/resource_bundle_android.h"
#include "ui/base/ui_base_paths.h"
namespace {
void DeleteFileTask(
const base::FilePath& file_path) {
if (base::PathExists(file_path))
base::DeleteFile(file_path, false);
}
} // namespace
ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid(
const content::MainFunctionParams& parameters)
: ChromeBrowserMainParts(parameters) {
......@@ -90,16 +79,6 @@ int ChromeBrowserMainPartsAndroid::PreCreateThreads() {
void ChromeBrowserMainPartsAndroid::PostProfileInit() {
ChromeBrowserMainParts::PostProfileInit();
// Previously we stored information related to salient images for bookmarks
// in a local file. We replaced the salient images with favicons. As part
// of the clean up, the local file needs to be deleted. See crbug.com/499415.
base::FilePath bookmark_image_file_path =
profile()->GetPath().Append("BookmarkImageAndUrlStore.db");
content::BrowserThread::PostDelayedTask(
content::BrowserThread::FILE, FROM_HERE,
base::Bind(&DeleteFileTask, bookmark_image_file_path),
base::TimeDelta::FromMinutes(1));
// Idempotent. Needs to be called once on startup. If
// InitializeClipboardAndroidFromLocalState() is called multiple times (e.g.,
// once per profile load), that's okay; the additional calls don't change
......
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