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

Side by Side Diff: chrome/browser/ui/webui/options/clear_browser_data_handler.cc

Issue 2594723002: Count number of origins with data affected by clearing "cookies and site data". (Closed)
Patch Set: remove comments Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/options/clear_browser_data_handler.h" 5 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 const char kMyActivityUrlInFooter[] = 54 const char kMyActivityUrlInFooter[] =
55 "https://history.google.com/history/?utm_source=chrome_cbd"; 55 "https://history.google.com/history/?utm_source=chrome_cbd";
56 56
57 const char kMyActivityUrlInDialog[] = 57 const char kMyActivityUrlInDialog[] =
58 "https://history.google.com/history/?utm_source=chrome_n"; 58 "https://history.google.com/history/?utm_source=chrome_n";
59 59
60 const int kMaxTimesHistoryNoticeShown = 1; 60 const int kMaxTimesHistoryNoticeShown = 1;
61 61
62 const char* kCounterPrefs[] = { 62 const char* kCounterPrefs[] = {
63 browsing_data::prefs::kDeleteBrowsingHistory, 63 browsing_data::prefs::kDeleteBrowsingHistory,
64 browsing_data::prefs::kDeleteCache, 64 browsing_data::prefs::kDeleteCache,
65 browsing_data::prefs::kDeleteFormData, 65 browsing_data::prefs::kDeleteCookies,
msramek 2017/01/10 10:23:02 This shouldn't be here if we don't have a counter
dullweber 2017/01/10 13:18:34 Done.
66 browsing_data::prefs::kDeleteMediaLicenses, 66 browsing_data::prefs::kDeleteFormData,
67 browsing_data::prefs::kDeletePasswords, 67 browsing_data::prefs::kDeleteMediaLicenses,
68 browsing_data::prefs::kDeletePasswords,
68 }; 69 };
69 70
70 } // namespace 71 } // namespace
71 72
72 namespace options { 73 namespace options {
73 74
74 ClearBrowserDataHandler::ClearBrowserDataHandler() 75 ClearBrowserDataHandler::ClearBrowserDataHandler()
75 : remover_(nullptr), 76 : remover_(nullptr),
76 sync_service_(nullptr), 77 sync_service_(nullptr),
77 should_show_history_notice_(false), 78 should_show_history_notice_(false),
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 "History.ClearBrowsingData.HistoryNoticeShownInFooterWhenUpdated", 430 "History.ClearBrowsingData.HistoryNoticeShownInFooterWhenUpdated",
430 should_show_history_notice_); 431 should_show_history_notice_);
431 } 432 }
432 433
433 void ClearBrowserDataHandler::UpdateHistoryDeletionDialog(bool show) { 434 void ClearBrowserDataHandler::UpdateHistoryDeletionDialog(bool show) {
434 // This is used by OnBrowsingDataRemoverDone (when the deletion finishes). 435 // This is used by OnBrowsingDataRemoverDone (when the deletion finishes).
435 should_show_history_deletion_dialog_ = show; 436 should_show_history_deletion_dialog_ = show;
436 } 437 }
437 438
438 } // namespace options 439 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698