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

Unified Diff: chrome/browser/chromeos/enrollment_dialog_view.h

Issue 10230012: This reduces so the enrollment dialog so it just spawns a tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix extension string Created 8 years, 8 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 | « no previous file | chrome/browser/chromeos/enrollment_dialog_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/enrollment_dialog_view.h
diff --git a/chrome/browser/chromeos/enrollment_dialog_view.h b/chrome/browser/chromeos/enrollment_dialog_view.h
index f737ae205895e13542b6b8ddf0b60d6093cf8b28..1992786a2ac220ac4ccb6222adbe1a4d19d7b6c2 100644
--- a/chrome/browser/chromeos/enrollment_dialog_view.h
+++ b/chrome/browser/chromeos/enrollment_dialog_view.h
@@ -12,52 +12,14 @@
#include "ui/gfx/native_widget_types.h"
#include "ui/views/window/dialog_delegate.h"
+class Profile;
+
namespace chromeos {
class EnrollmentDelegate;
-// Dialog for certificate enrollment. This displays the content from the
-// certificate enrollment URI.
-class EnrollmentDialogView
- : public views::DialogDelegateView,
- public net::CertDatabase::Observer {
- public:
- virtual ~EnrollmentDialogView();
-
- static EnrollmentDelegate* CreateEnrollmentDelegate(
- gfx::NativeWindow owning_window);
-
- static void ShowDialog(gfx::NativeWindow owning_window,
- const GURL& target_uri,
- const base::Closure& connect);
- void Close();
-
- // views::DialogDelegateView overrides
- virtual int GetDialogButtons() const OVERRIDE;
- virtual void OnClose() OVERRIDE;
-
- // views::WidgetDelegate overrides
- virtual ui::ModalType GetModalType() const OVERRIDE;
- virtual string16 GetWindowTitle() const OVERRIDE;
-
- // views::View overrides
- virtual gfx::Size GetPreferredSize() OVERRIDE;
-
- // views::Widget overrides
- virtual views::View* GetContentsView() OVERRIDE;
-
- // net::CertDatabase::Observer overrides
- virtual void OnUserCertAdded(const net::X509Certificate* cert) OVERRIDE;
-
- private:
- EnrollmentDialogView(const GURL& target_uri,
- const base::Closure& connect);
- void InitDialog();
-
- GURL target_uri_;
- base::Closure connect_;
- bool added_cert_;
-};
+EnrollmentDelegate* CreateEnrollmentDelegate(gfx::NativeWindow owning_window,
+ Profile* profile);
} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/chromeos/enrollment_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698