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

Issue 1420003004: Wipe out offline page data on clearing cookie and site data (Closed)

Created:
5 years, 2 months ago by jianli
Modified:
5 years, 1 month ago
CC:
chromium-reviews, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wipe out offline page data on clearing cookie and site data BUG=491352 Committed: https://crrev.com/23248b4cbc2dd78b1673a90a3624bb4cfff7e447 Cr-Commit-Position: refs/heads/master@{#356442}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 21

Patch Set 3 : Address feedback #

Patch Set 4 : Fix tests #

Total comments: 3

Patch Set 5 : Address more feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -174 lines) Patch
M chrome/browser/android/offline_pages/offline_page_model_factory.cc View 1 2 3 4 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 4 chunks +18 lines, -0 lines 0 comments Download
M components/leveldb_proto/leveldb_database.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/leveldb_proto/leveldb_database.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M components/leveldb_proto/proto_database.h View 2 chunks +4 lines, -0 lines 0 comments Download
M components/leveldb_proto/proto_database_impl.h View 5 chunks +30 lines, -0 lines 0 comments Download
M components/leveldb_proto/testing/fake_db.h View 2 chunks +7 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store.h View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl.h View 1 2 3 4 4 chunks +16 lines, -7 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl.cc View 1 2 3 4 4 chunks +91 lines, -70 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 3 12 chunks +43 lines, -77 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 4 5 chunks +72 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 2 3 6 chunks +64 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 4 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
jianli
fgorski for offline pages michaeln for browsing data mathp for leveldb proto
5 years, 2 months ago (2015-10-22 23:57:25 UTC) #2
Mathieu
lgtm for leveldb_proto
5 years, 2 months ago (2015-10-23 18:14:47 UTC) #3
michaeln
bdr lgtm
5 years, 2 months ago (2015-10-23 20:16:56 UTC) #4
fgorski
Jian Li, Could you change all the yyyCompleted methods to yyyDone? Based on: https://code.google.com/p/chromium/codesearch#search/&q=Done%20file:%5Esrc/components/offline_pages/&sq=package:chromium&type=cs vs. ...
5 years, 2 months ago (2015-10-23 20:55:03 UTC) #5
jianli
https://codereview.chromium.org/1420003004/diff/20001/components/offline_pages/offline_page_metadata_store_impl.cc File components/offline_pages/offline_page_metadata_store_impl.cc (right): https://codereview.chromium.org/1420003004/diff/20001/components/offline_pages/offline_page_metadata_store_impl.cc#newcode123 components/offline_pages/offline_page_metadata_store_impl.cc:123: UMA_HISTOGRAM_BOOLEAN("OfflinePages.LoadSuccess", false); On 2015/10/23 20:55:03, fgorski wrote: > does ...
5 years, 1 month ago (2015-10-26 21:42:44 UTC) #6
jianli
rkaplow for new UMAs.
5 years, 1 month ago (2015-10-26 22:54:01 UTC) #8
rkaplow
lgtm
5 years, 1 month ago (2015-10-26 23:03:27 UTC) #9
fgorski
Hey, you didn't address my Done vs. Complete comment earlier. Please see my last message. ...
5 years, 1 month ago (2015-10-27 20:13:09 UTC) #10
jianli
Also renamed methods ended with Completed to Done. https://codereview.chromium.org/1420003004/diff/50017/components/offline_pages/offline_page_metadata_store_impl.cc File components/offline_pages/offline_page_metadata_store_impl.cc (right): https://codereview.chromium.org/1420003004/diff/50017/components/offline_pages/offline_page_metadata_store_impl.cc#newcode122 components/offline_pages/offline_page_metadata_store_impl.cc:122: database_.reset(); ...
5 years, 1 month ago (2015-10-27 21:55:04 UTC) #11
jianli
Also renamed methods ended with Completed to Done.
5 years, 1 month ago (2015-10-27 21:55:06 UTC) #12
fgorski
lgtm
5 years, 1 month ago (2015-10-27 22:14:52 UTC) #13
fgorski
lgtm
5 years, 1 month ago (2015-10-27 22:14:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420003004/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420003004/70001
5 years, 1 month ago (2015-10-27 22:17:13 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:70001)
5 years, 1 month ago (2015-10-27 23:56:42 UTC) #18
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/23248b4cbc2dd78b1673a90a3624bb4cfff7e447 Cr-Commit-Position: refs/heads/master@{#356442}
5 years, 1 month ago (2015-10-27 23:58:04 UTC) #19
commit-bot: I haz the power
Failed to apply the patch.
5 years, 1 month ago (2015-10-27 23:58:07 UTC) #20
Nico
5 years, 1 month ago (2015-10-28 03:24:23 UTC) #22
Message was sent while issue was closed.
this breaks the clang/win build:

In file included from
..\..\components\offline_pages\offline_page_metadata_store_impl_unittest.cc:14:
..\..\components/leveldb_proto/proto_database_impl.h(102,6) : error: unused
function 'InitFromTaskRunner' [-Werror,-Wunused-function]
void InitFromTaskRunner(LevelDB* database, const base::FilePath& database_dir,
     ^
..\..\components/leveldb_proto/proto_database_impl.h(110,6) : error: unused
function 'DestroyFromTaskRunner' [-Werror,-Wunused-function]
void DestroyFromTaskRunner(const base::FilePath& database_dir, bool* success) {
     ^
2 errors generated.

Can you take a look?

Powered by Google App Engine
This is Rietveld 408576698