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

Unified Diff: chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now a tc delegate Created 9 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
Index: chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h
diff --git a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h b/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h
index 39b358aeb8bc5cb9973908c7b3bd591412d7b264..8d09d48119d1c29bc71b4d6df1a6697b23fc912f 100644
--- a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h
+++ b/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/string16.h"
#include "build/build_config.h"
class NativeAppModalDialog;
@@ -20,7 +21,7 @@ class AppModalDialog {
// A union of data necessary to determine the type of message box to
// show. |tab_contents| parameter is optional, if provided that tab will be
// activated before the modal dialog is displayed.
- AppModalDialog(TabContents* tab_contents, const std::wstring& title);
+ AppModalDialog(TabContents* tab_contents, const string16& title);
virtual ~AppModalDialog();
// Called by the AppModalDialogQueue to show this dialog.
@@ -37,7 +38,7 @@ class AppModalDialog {
void CompleteDialog();
// Dialog window title.
- std::wstring title() const { return title_; }
+ string16 title() const { return title_; }
NativeAppModalDialog* native_dialog() const { return native_dialog_; }
@@ -76,7 +77,7 @@ class AppModalDialog {
private:
// Information about the message box is held in the following variables.
- std::wstring title_;
+ string16 title_;
DISALLOW_COPY_AND_ASSIGN(AppModalDialog);
};

Powered by Google App Engine
This is Rietveld 408576698