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

Unified Diff: chrome/browser/gtk/options/general_page_gtk.h

Issue 160218: Fix running default browser check/setting in UI thread on Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/general_page_gtk.h
===================================================================
--- chrome/browser/gtk/options/general_page_gtk.h (revision 21781)
+++ chrome/browser/gtk/options/general_page_gtk.h (working copy)
@@ -13,6 +13,7 @@
#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/options_page_base.h"
#include "chrome/browser/search_engines/template_url_model.h"
+#include "chrome/browser/shell_integration.h"
#include "chrome/common/pref_member.h"
#include "googleurl/src/gurl.h"
@@ -20,7 +21,8 @@
class ListStoreFavIconLoader;
class GeneralPageGtk : public OptionsPageBase,
- public TemplateURLModelObserver {
+ public TemplateURLModelObserver,
+ public ShellIntegration::DefaultBrowserObserver {
public:
explicit GeneralPageGtk(Profile* profile);
~GeneralPageGtk();
@@ -126,8 +128,9 @@
// option if that preference is not selected.
void EnableCustomHomepagesControls(bool enable);
- // Sets the UI state to match
- void SetDefaultBrowserUIState(bool is_default);
+ // ShellIntegration::DefaultBrowserObserver implementation.
+ virtual void SetDefaultBrowserUIState(
+ ShellIntegration::DefaultBrowserUIState state);
// Widgets of the startup group
GtkWidget* startup_homepage_radio_;
@@ -175,6 +178,9 @@
// Helper to load the favicon pixbufs into the |startup_custom_pages_model_|.
scoped_ptr<ListStoreFavIconLoader> favicon_loader_;
+ // The helper object that performs default browser set/check tasks.
+ scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_;
+
DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk);
};
Property changes on: chrome/browser/gtk/options/general_page_gtk.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698