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

Side by Side Diff: chrome/browser/dom_ui/options/clear_browser_data_handler.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/options/clear_browser_data_handler.h" 5 #include "chrome/browser/dom_ui/options/clear_browser_data_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "grit/chromium_strings.h" 14 #include "grit/chromium_strings.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "grit/locale_settings.h" 16 #include "grit/locale_settings.h"
17 17
18 ClearBrowserDataHandler::ClearBrowserDataHandler() : remover_(NULL) { 18 ClearBrowserDataHandler::ClearBrowserDataHandler() : remover_(NULL) {
19 } 19 }
20 20
21 ClearBrowserDataHandler::~ClearBrowserDataHandler() { 21 ClearBrowserDataHandler::~ClearBrowserDataHandler() {
22 if (remover_) { 22 if (remover_) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() { 124 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() {
125 // No need to remove ourselves as an observer as BrowsingDataRemover deletes 125 // No need to remove ourselves as an observer as BrowsingDataRemover deletes
126 // itself after we return. 126 // itself after we return.
127 remover_ = NULL; 127 remover_ = NULL;
128 DCHECK(dom_ui_); 128 DCHECK(dom_ui_);
129 dom_ui_->CallJavascriptFunction(L"ClearBrowserDataOverlay.dismiss"); 129 dom_ui_->CallJavascriptFunction(L"ClearBrowserDataOverlay.dismiss");
130 } 130 }
131 131
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/browser_options_handler.cc ('k') | chrome/browser/dom_ui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698