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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_model_factory.cc

Issue 1986673002: [Offline Pages] Updated clearing logic in storage manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing trybots. Created 4 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 5 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 base::FilePath store_path = 48 base::FilePath store_path =
49 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname); 49 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname);
50 std::unique_ptr<OfflinePageMetadataStore> metadata_store( 50 std::unique_ptr<OfflinePageMetadataStore> metadata_store(
51 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); 51 new OfflinePageMetadataStoreSQL(background_task_runner, store_path));
52 52
53 base::FilePath archives_dir = 53 base::FilePath archives_dir =
54 profile->GetPath().Append(chrome::kOfflinePageArchviesDirname); 54 profile->GetPath().Append(chrome::kOfflinePageArchviesDirname);
55 55
56 return new OfflinePageModel(std::move(metadata_store), archives_dir, 56 return new OfflinePageModel(std::move(metadata_store), archives_dir,
57 background_task_runner); 57 background_task_runner, profile->GetPrefs());
58 } 58 }
59 59
60 } // namespace offline_pages 60 } // namespace offline_pages
61 61
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/test_offline_page_model_builder.cc » ('j') | components/offline_pages.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698