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

Unified Diff: chrome/browser/ui/alternate_error_tab_observer.h

Issue 10033017: More misc. cleanups to minimize future refactoring diffs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/ui/alternate_error_tab_observer.h
===================================================================
--- chrome/browser/ui/alternate_error_tab_observer.h (revision 131375)
+++ chrome/browser/ui/alternate_error_tab_observer.h (working copy)
@@ -17,15 +17,13 @@
class AlternateErrorPageTabObserver : public content::WebContentsObserver,
public content::NotificationObserver {
public:
- explicit AlternateErrorPageTabObserver(content::WebContents* web_contents);
+ AlternateErrorPageTabObserver(content::WebContents* web_contents,
+ Profile* profile);
virtual ~AlternateErrorPageTabObserver();
static void RegisterUserPrefs(PrefService* prefs);
private:
- // Helper to return the profile for this tab.
- Profile* GetProfile() const;
-
// content::WebContentsObserver overrides:
virtual void RenderViewCreated(
content::RenderViewHost* render_view_host) OVERRIDE;
@@ -44,6 +42,7 @@
// Send the alternate error page URL to the renderer.
void UpdateAlternateErrorPageURL(content::RenderViewHost* rvh);
+ Profile* profile_;
content::NotificationRegistrar registrar_;
PrefChangeRegistrar pref_change_registrar_;

Powered by Google App Engine
This is Rietveld 408576698