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

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

Issue 108273002: Add information that some data may not get deleted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced [] and {} with || and ## to be left-to-right/right-to-left independent Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options/clear_browser_data_overlay.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 web_ui()->CallJavascriptFunction( 71 web_ui()->CallJavascriptFunction(
72 "ClearBrowserDataOverlay.setBannerVisibility", args); 72 "ClearBrowserDataOverlay.setBannerVisibility", args);
73 } 73 }
74 74
75 void ClearBrowserDataHandler::GetLocalizedValues( 75 void ClearBrowserDataHandler::GetLocalizedValues(
76 DictionaryValue* localized_strings) { 76 DictionaryValue* localized_strings) {
77 DCHECK(localized_strings); 77 DCHECK(localized_strings);
78 78
79 static OptionsStringResource resources[] = { 79 static OptionsStringResource resources[] = {
80 { "clearBrowserDataLabel", IDS_CLEAR_BROWSING_DATA_LABEL }, 80 { "clearBrowserDataLabel", IDS_CLEAR_BROWSING_DATA_LABEL },
81 { "contentSettingsAndSearchEnginesRemain",
82 IDS_CLEAR_BROWSING_DATA_SOME_STUFF_REMAINS },
81 { "deleteBrowsingHistoryCheckbox", IDS_DEL_BROWSING_HISTORY_CHKBOX }, 83 { "deleteBrowsingHistoryCheckbox", IDS_DEL_BROWSING_HISTORY_CHKBOX },
82 { "deleteDownloadHistoryCheckbox", IDS_DEL_DOWNLOAD_HISTORY_CHKBOX }, 84 { "deleteDownloadHistoryCheckbox", IDS_DEL_DOWNLOAD_HISTORY_CHKBOX },
83 { "deleteCacheCheckbox", IDS_DEL_CACHE_CHKBOX }, 85 { "deleteCacheCheckbox", IDS_DEL_CACHE_CHKBOX },
84 { "deleteCookiesCheckbox", IDS_DEL_COOKIES_CHKBOX }, 86 { "deleteCookiesCheckbox", IDS_DEL_COOKIES_CHKBOX },
85 { "deleteCookiesFlashCheckbox", IDS_DEL_COOKIES_FLASH_CHKBOX }, 87 { "deleteCookiesFlashCheckbox", IDS_DEL_COOKIES_FLASH_CHKBOX },
86 { "deletePasswordsCheckbox", IDS_DEL_PASSWORDS_CHKBOX }, 88 { "deletePasswordsCheckbox", IDS_DEL_PASSWORDS_CHKBOX },
87 { "deleteFormDataCheckbox", IDS_DEL_FORM_DATA_CHKBOX }, 89 { "deleteFormDataCheckbox", IDS_DEL_FORM_DATA_CHKBOX },
88 { "deleteHostedAppsDataCheckbox", IDS_DEL_HOSTED_APPS_DATA_CHKBOX }, 90 { "deleteHostedAppsDataCheckbox", IDS_DEL_HOSTED_APPS_DATA_CHKBOX },
89 { "deauthorizeContentLicensesCheckbox", 91 { "deauthorizeContentLicensesCheckbox",
90 IDS_DEAUTHORIZE_CONTENT_LICENSES_CHKBOX }, 92 IDS_DEAUTHORIZE_CONTENT_LICENSES_CHKBOX },
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); 208 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing");
207 } 209 }
208 210
209 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { 211 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() {
210 web_ui()->CallJavascriptFunction( 212 web_ui()->CallJavascriptFunction(
211 "ClearBrowserDataOverlay.updateHistoryCheckboxes", 213 "ClearBrowserDataOverlay.updateHistoryCheckboxes",
212 base::FundamentalValue(*allow_deleting_browser_history_)); 214 base::FundamentalValue(*allow_deleting_browser_history_));
213 } 215 }
214 216
215 } // namespace options 217 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/clear_browser_data_overlay.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698