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

Side by Side Diff: chrome/browser/ui/webui/quota_internals_handler.cc

Issue 10834264: Add BrowserContext::GetQuotaManagerForRenderProcess for the isolated app feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/quota_internals_handler.h" 5 #include "chrome/browser/ui/webui/quota_internals_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 scoped_ptr<base::Value> message_data(base::Value::CreateStringValue(message)); 80 scoped_ptr<base::Value> message_data(base::Value::CreateStringValue(message));
81 web_ui()->CallJavascriptFunction("cr.quota.messageHandler", 81 web_ui()->CallJavascriptFunction("cr.quota.messageHandler",
82 *message_data, 82 *message_data,
83 value); 83 value);
84 } 84 }
85 85
86 void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) { 86 void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) {
87 if (!proxy_) 87 if (!proxy_)
88 proxy_ = new QuotaInternalsProxy(this); 88 proxy_ = new QuotaInternalsProxy(this);
89 proxy_->RequestInfo( 89 proxy_->RequestInfo(
90 content::BrowserContext::GetQuotaManager(Profile::FromWebUI(web_ui()))); 90 BrowserContext::GetDefaultQuotaManager(Profile::FromWebUI(web_ui())));
awong 2012/08/10 14:17:20 Is this because http://quota-internals needs to be
91 } 91 }
92 92
93 } // namespace quota_internals 93 } // namespace quota_internals
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698