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

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

Issue 10948006: Cleanup: quota::HostQuotaCallback do not need to pass host and type as arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unittests somehow missed in previous patch Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_proxy.h" 5 #include "chrome/browser/ui/webui/quota_internals_proxy.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 } 206 }
207 } 207 }
208 208
209 void QuotaInternalsProxy::GetHostUsage(const std::string& host, 209 void QuotaInternalsProxy::GetHostUsage(const std::string& host,
210 quota::StorageType type) { 210 quota::StorageType type) {
211 DCHECK(quota_manager_); 211 DCHECK(quota_manager_);
212 quota_manager_->GetHostUsage( 212 quota_manager_->GetHostUsage(
213 host, type, 213 host, type,
214 base::Bind(&QuotaInternalsProxy::DidGetHostUsage, 214 base::Bind(&QuotaInternalsProxy::DidGetHostUsage,
215 weak_factory_.GetWeakPtr())); 215 weak_factory_.GetWeakPtr(), host, type));
216 } 216 }
217 217
218 } // namespace quota_internals 218 } // namespace quota_internals
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698