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

Unified Diff: components/infobars/core/confirm_infobar_delegate.cc

Issue 289083004: infobars: Componentize ConfirmInfoBarDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/confirm_infobar_delegate.cc
diff --git a/chrome/browser/infobars/confirm_infobar_delegate.cc b/components/infobars/core/confirm_infobar_delegate.cc
similarity index 90%
rename from chrome/browser/infobars/confirm_infobar_delegate.cc
rename to components/infobars/core/confirm_infobar_delegate.cc
index 51f87028da1af3119da01f46c648f0d0057d6246..694c74fb4f8f38f0a12ba5687faa190e152a45ee 100644
--- a/chrome/browser/infobars/confirm_infobar_delegate.cc
+++ b/components/infobars/core/confirm_infobar_delegate.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "components/infobars/core/confirm_infobar_delegate.h"
-#include "grit/generated_resources.h"
+#include "grit/ui_strings.h"
#include "ui/base/l10n/l10n_util.h"
using infobars::InfoBarDelegate;
@@ -23,7 +23,8 @@ int ConfirmInfoBarDelegate::GetButtons() const {
base::string16 ConfirmInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
- return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_OK : IDS_CANCEL);
+ return l10n_util::GetStringUTF16((button == BUTTON_OK) ?
+ IDS_APP_OK : IDS_APP_CANCEL);
}
bool ConfirmInfoBarDelegate::OKButtonTriggersUACPrompt() const {
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698