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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 6961013: Allow chrome to become the os default handler for arbitrary protocols on mac/win. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More changes for comments; fix for a bug introduced with DefaultWebClientWorker refactoring 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/webui/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index 67bbb34186a3cd99f33f1c0e925c9e9d31c44e70..e14a6a56fe144336adbd3b130f82bde0c0f96ad6 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -21,7 +21,7 @@ class TemplateURLModel;
// Chrome browser options page UI handler.
class BrowserOptionsHandler : public OptionsPageUIHandler,
public AutocompleteControllerDelegate,
- public ShellIntegration::DefaultBrowserObserver,
+ public ShellIntegration::DefaultWebClientObserver,
public TemplateURLModelObserver,
public ui::TableModelObserver {
public:
@@ -37,9 +37,9 @@ class BrowserOptionsHandler : public OptionsPageUIHandler,
// AutocompleteControllerDelegate implementation.
virtual void OnResultChanged(bool default_match_changed);
- // ShellIntegration::DefaultBrowserObserver implementation.
- virtual void SetDefaultBrowserUIState(
- ShellIntegration::DefaultBrowserUIState state);
+ // ShellIntegration::DefaultWebClientObserver implementation.
+ virtual void SetDefaultWebClientUIState(
+ ShellIntegration::DefaultWebClientUIState state);
// TemplateURLModelObserver implementation.
virtual void OnTemplateURLModelChanged();
@@ -88,7 +88,7 @@ class BrowserOptionsHandler : public OptionsPageUIHandler,
void ToggleShowBookmarksBar(const ListValue* args);
// Returns the string ID for the given default browser state.
- int StatusStringIdForState(ShellIntegration::DefaultBrowserState state);
+ int StatusStringIdForState(ShellIntegration::DefaultWebClientState state);
// Gets the current default browser state, and asynchronously reports it to
// the WebUI page.
@@ -106,7 +106,8 @@ class BrowserOptionsHandler : public OptionsPageUIHandler,
// Writes the current set of startup pages to prefs.
void SaveStartupPagesPref();
- scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_;
+ scoped_refptr<ShellIntegration::DefaultBrowserWorker>
+ default_browser_worker_;
StringPrefMember homepage_;
BooleanPrefMember default_browser_policy_;

Powered by Google App Engine
This is Rietveld 408576698