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

Side by Side Diff: chrome/browser/ui/sync/inline_login_dialog.h

Issue 1053663003: Cleanup: Remove unused variables in chrome/ found by Scythe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/search/instant_tab.cc ('k') | chrome/browser/ui/sync/inline_login_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_
6 #define CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_ 6 #define CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "ui/web_dialogs/web_dialog_delegate.h" 13 #include "ui/web_dialogs/web_dialog_delegate.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 // A dialog to host the inline sign-in WebUI. Currently, it loads 17 // A dialog to host the inline sign-in WebUI. Currently, it loads
18 // chrome:://chrome-signin and dismisses itself when the sign-in is finished 18 // chrome:://chrome-signin and dismisses itself when the sign-in is finished
19 // successfully. 19 // successfully.
20 class InlineLoginDialog : public ui::WebDialogDelegate { 20 class InlineLoginDialog : public ui::WebDialogDelegate {
21 public: 21 public:
22 static void Show(Profile* profile); 22 static void Show(Profile* profile);
23 23
24 private: 24 private:
25 explicit InlineLoginDialog(Profile* profile); 25 InlineLoginDialog();
26 26
27 // ui::WebDialogDelegate overrides: 27 // ui::WebDialogDelegate overrides:
28 ui::ModalType GetDialogModalType() const override; 28 ui::ModalType GetDialogModalType() const override;
29 base::string16 GetDialogTitle() const override; 29 base::string16 GetDialogTitle() const override;
30 GURL GetDialogContentURL() const override; 30 GURL GetDialogContentURL() const override;
31 void GetWebUIMessageHandlers( 31 void GetWebUIMessageHandlers(
32 std::vector<content::WebUIMessageHandler*>* handlers) const override; 32 std::vector<content::WebUIMessageHandler*>* handlers) const override;
33 void GetDialogSize(gfx::Size* size) const override; 33 void GetDialogSize(gfx::Size* size) const override;
34 std::string GetDialogArgs() const override; 34 std::string GetDialogArgs() const override;
35 void OnDialogClosed(const std::string& json_retval) override; 35 void OnDialogClosed(const std::string& json_retval) override;
36 void OnCloseContents(content::WebContents* source, 36 void OnCloseContents(content::WebContents* source,
37 bool* out_close_dialog) override; 37 bool* out_close_dialog) override;
38 bool ShouldShowDialogTitle() const override; 38 bool ShouldShowDialogTitle() const override;
39 bool HandleContextMenu(const content::ContextMenuParams& params) override; 39 bool HandleContextMenu(const content::ContextMenuParams& params) override;
40 40
41 Profile* profile_;
42
43 DISALLOW_COPY_AND_ASSIGN(InlineLoginDialog); 41 DISALLOW_COPY_AND_ASSIGN(InlineLoginDialog);
44 }; 42 };
45 43
46 #endif // CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_ 44 #endif // CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_tab.cc ('k') | chrome/browser/ui/sync/inline_login_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698