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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 6
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 data = base::RefCountedString::TakeString(&file_data); 675 data = base::RefCountedString::TakeString(&file_data);
676 } 676 }
677 } 677 }
678 // Proceed even for empty data to simplify testing. 678 // Proceed even for empty data to simplify testing.
679 BrowserThread::PostTask( 679 BrowserThread::PostTask(
680 BrowserThread::UI, FROM_HERE, 680 BrowserThread::UI, FROM_HERE,
681 base::Bind(&print_dialog_cloud::CreatePrintDialogForBytes, 681 base::Bind(&print_dialog_cloud::CreatePrintDialogForBytes,
682 browser_context, modal_parent, data, print_job_title, 682 browser_context, modal_parent, data, print_job_title,
683 print_ticket, file_type)); 683 print_ticket, file_type));
684 if (delete_on_close) 684 if (delete_on_close)
685 file_util::Delete(path_to_file, false); 685 base::Delete(path_to_file, false);
686 } 686 }
687 687
688 } // namespace internal_cloud_print_helpers 688 } // namespace internal_cloud_print_helpers
689 689
690 namespace print_dialog_cloud { 690 namespace print_dialog_cloud {
691 691
692 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 692 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
693 registry->RegisterIntegerPref( 693 registry->RegisterIntegerPref(
694 prefs::kCloudPrintDialogWidth, 694 prefs::kCloudPrintDialogWidth,
695 kDefaultWidth, 695 kDefaultWidth,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 print_job_print_ticket, 778 print_job_print_ticket,
779 file_type, 779 file_type,
780 delete_on_close); 780 delete_on_close);
781 return true; 781 return true;
782 } 782 }
783 } 783 }
784 return false; 784 return false;
785 } 785 }
786 786
787 } // end namespace 787 } // end namespace
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_store.cc ('k') | chrome/browser/printing/print_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698