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

Unified Diff: chrome_frame/protocol_sink_wrap.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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_frame/protocol_sink_wrap.cc
diff --git a/chrome_frame/protocol_sink_wrap.cc b/chrome_frame/protocol_sink_wrap.cc
index 0ea330f5663d4463c391aa50054ea46ce8711041..64d9048098b18965e744ec80fdeb291a6974850e 100644
--- a/chrome_frame/protocol_sink_wrap.cc
+++ b/chrome_frame/protocol_sink_wrap.cc
@@ -232,9 +232,8 @@ bool IsAdditionallySupportedContentType(const wchar_t* status_text) {
return true;
}
- Singleton<PolicySettings> policy;
- if (policy->GetRendererForContentType(status_text) ==
- PolicySettings::RENDER_IN_CHROME_FRAME) {
+ if (PolicySettings::GetInstance()->GetRendererForContentType(
+ status_text) == PolicySettings::RENDER_IN_CHROME_FRAME) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698