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

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

Issue 275483005: Fix initial focus, and the way elements are disabled on the 'Clear browsing data' dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() { 210 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() {
211 // No need to remove ourselves as an observer as BrowsingDataRemover deletes 211 // No need to remove ourselves as an observer as BrowsingDataRemover deletes
212 // itself after we return. 212 // itself after we return.
213 remover_ = NULL; 213 remover_ = NULL;
214 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); 214 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing");
215 } 215 }
216 216
217 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { 217 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() {
218 web_ui()->CallJavascriptFunction( 218 web_ui()->CallJavascriptFunction(
219 "ClearBrowserDataOverlay.updateHistoryCheckboxes", 219 "ClearBrowserDataOverlay.setAllowDeletingHistory",
220 base::FundamentalValue(*allow_deleting_browser_history_)); 220 base::FundamentalValue(*allow_deleting_browser_history_));
221 } 221 }
222 222
223 } // namespace options 223 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698