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

Side by Side Diff: chrome/browser/views/clear_browsing_data.cc

Issue 45019: Bug 6474: Rename the Cancel button to Close in Clear Browsing Data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « chrome/app/generated_resources.grd ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/clear_browsing_data.h" 5 #include "chrome/browser/views/clear_browsing_data.h"
6 6
7 #include "chrome/browser/profile.h" 7 #include "chrome/browser/profile.h"
8 #include "chrome/browser/search_engines/template_url_model.h" 8 #include "chrome/browser/search_engines/template_url_model.h"
9 #include "chrome/browser/views/standard_layout.h" 9 #include "chrome/browser/views/standard_layout.h"
10 #include "chrome/common/l10n_util.h" 10 #include "chrome/common/l10n_util.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 233 }
234 } 234 }
235 235
236 //////////////////////////////////////////////////////////////////////////////// 236 ////////////////////////////////////////////////////////////////////////////////
237 // ClearBrowsingDataView, views::DialogDelegate implementation: 237 // ClearBrowsingDataView, views::DialogDelegate implementation:
238 238
239 std::wstring ClearBrowsingDataView::GetDialogButtonLabel( 239 std::wstring ClearBrowsingDataView::GetDialogButtonLabel(
240 DialogButton button) const { 240 DialogButton button) const {
241 if (button == DIALOGBUTTON_OK) { 241 if (button == DIALOGBUTTON_OK) {
242 return l10n_util::GetString(IDS_CLEAR_BROWSING_DATA_COMMIT); 242 return l10n_util::GetString(IDS_CLEAR_BROWSING_DATA_COMMIT);
243 } else if (button == DIALOGBUTTON_CANCEL) {
244 return l10n_util::GetString(IDS_CLOSE);
243 } else { 245 } else {
244 return std::wstring(); 246 return std::wstring();
245 } 247 }
246 } 248 }
247 249
248 bool ClearBrowsingDataView::IsDialogButtonEnabled(DialogButton button) const { 250 bool ClearBrowsingDataView::IsDialogButtonEnabled(DialogButton button) const {
249 if (delete_in_progress_) 251 if (delete_in_progress_)
250 return false; 252 return false;
251 253
252 if (button == DIALOGBUTTON_OK) { 254 if (button == DIALOGBUTTON_OK) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 remover_->AddObserver(this); 436 remover_->AddObserver(this);
435 remover_->Remove(remove_mask); 437 remover_->Remove(remove_mask);
436 } 438 }
437 439
438 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() { 440 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() {
439 // No need to remove ourselves as an observer as BrowsingDataRemover deletes 441 // No need to remove ourselves as an observer as BrowsingDataRemover deletes
440 // itself after we return. 442 // itself after we return.
441 remover_ = NULL; 443 remover_ = NULL;
442 window()->Close(); 444 window()->Close();
443 } 445 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698