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

Unified Diff: chrome/browser/ui/ash/chrome_shell_content_state.h

Issue 2615663002: Fix MediaClient::RequestCaptureState(). (Closed)
Patch Set: ash Created 3 years, 11 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/ash/chrome_shell_content_state.h
diff --git a/chrome/browser/ui/ash/chrome_shell_content_state.h b/chrome/browser/ui/ash/chrome_shell_content_state.h
index d3f3e80e4e95161020a07a377465825092ff331e..096b3153bb3d11bafd5929e20005d1676d60509c 100644
--- a/chrome/browser/ui/ash/chrome_shell_content_state.h
+++ b/chrome/browser/ui/ash/chrome_shell_content_state.h
@@ -11,10 +11,12 @@
class ChromeShellContentState : public ash::ShellContentState {
public:
ChromeShellContentState();
-
- private:
~ChromeShellContentState() override;
+ static void SetInstance(ChromeShellContentState* state);
James Cook 2017/01/09 21:07:19 Do you use these public methods outside this class
riajiang 2017/01/09 23:46:51 It's not used outside. Moved it to ctor and dtor.
+ static ChromeShellContentState* GetInstance();
+ static void DestroyInstance();
+
// Overridden from ash::ShellContentState:
content::BrowserContext* GetActiveBrowserContext() override;
content::BrowserContext* GetBrowserContextByIndex(
@@ -24,6 +26,9 @@ class ChromeShellContentState : public ash::ShellContentState {
content::BrowserContext* GetUserPresentingBrowserContextForWindow(
aura::Window* window) override;
+ private:
+ static ChromeShellContentState* instance_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeShellContentState);
};

Powered by Google App Engine
This is Rietveld 408576698