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

Side by Side Diff: chrome/browser/browsing_data_file_system_helper.cc

Issue 7065056: Dropping BrowsingDataFileSystemHelper browser_test in favor of a unit_test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data_file_system_helper_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browsing_data_file_system_helper.h" 5 #include "chrome/browser/browsing_data_file_system_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (completion_callback_ != NULL) { 148 if (completion_callback_ != NULL) {
149 completion_callback_->Run(file_system_info_); 149 completion_callback_->Run(file_system_info_);
150 completion_callback_.reset(); 150 completion_callback_.reset();
151 } 151 }
152 is_fetching_ = false; 152 is_fetching_ = false;
153 } 153 }
154 154
155 void BrowsingDataFileSystemHelperImpl::DeleteFileSystemOriginInFileThread( 155 void BrowsingDataFileSystemHelperImpl::DeleteFileSystemOriginInFileThread(
156 const GURL& origin) { 156 const GURL& origin) {
157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
158 scoped_refptr<fileapi::FileSystemContext> 158 profile_->GetFileSystemContext()->DeleteDataForOriginOnFileThread(origin);
159 context(profile_->GetFileSystemContext());
160 context->DeleteDataForOriginOnFileThread(origin);
161 } 159 }
162 160
163 } // namespace 161 } // namespace
164 162
165 BrowsingDataFileSystemHelper::FileSystemInfo::FileSystemInfo( 163 BrowsingDataFileSystemHelper::FileSystemInfo::FileSystemInfo(
166 const GURL& origin, 164 const GURL& origin,
167 bool has_persistent, 165 bool has_persistent,
168 bool has_temporary, 166 bool has_temporary,
169 int64 usage_persistent, 167 int64 usage_persistent,
170 int64 usage_temporary) 168 int64 usage_temporary)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 completion_callback_->Run(file_system_info_); 289 completion_callback_->Run(file_system_info_);
292 completion_callback_.reset(); 290 completion_callback_.reset();
293 } 291 }
294 is_fetching_ = false; 292 is_fetching_ = false;
295 } 293 }
296 294
297 void CannedBrowsingDataFileSystemHelper::CancelNotification() { 295 void CannedBrowsingDataFileSystemHelper::CancelNotification() {
298 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 296 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
299 completion_callback_.reset(); 297 completion_callback_.reset();
300 } 298 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_file_system_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698