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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 browser_context, modal_parent, data, print_job_title, 674 browser_context, modal_parent, data, print_job_title,
675 print_ticket, file_type)); 675 print_ticket, file_type));
676 base::DeleteFile(path_to_file, false); 676 base::DeleteFile(path_to_file, false);
677 } 677 }
678 678
679 } // namespace internal_cloud_print_helpers 679 } // namespace internal_cloud_print_helpers
680 680
681 namespace print_dialog_cloud { 681 namespace print_dialog_cloud {
682 682
683 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 683 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
684 registry->RegisterIntegerPref( 684 registry->RegisterIntegerPref(prefs::kCloudPrintDialogWidth, kDefaultWidth);
685 prefs::kCloudPrintDialogWidth, 685 registry->RegisterIntegerPref(prefs::kCloudPrintDialogHeight, kDefaultHeight);
686 kDefaultWidth,
687 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
688 registry->RegisterIntegerPref(
689 prefs::kCloudPrintDialogHeight,
690 kDefaultHeight,
691 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
692 } 686 }
693 687
694 // Called on the FILE or UI thread. This is the main entry point into creating 688 // Called on the FILE or UI thread. This is the main entry point into creating
695 // the dialog. 689 // the dialog.
696 690
697 void CreatePrintDialogForFile(content::BrowserContext* browser_context, 691 void CreatePrintDialogForFile(content::BrowserContext* browser_context,
698 gfx::NativeView modal_parent, 692 gfx::NativeView modal_parent,
699 const base::FilePath& path_to_file, 693 const base::FilePath& path_to_file,
700 const base::string16& print_job_title, 694 const base::string16& print_job_title,
701 const base::string16& print_ticket, 695 const base::string16& print_ticket,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 768
775 print_dialog_cloud::CreatePrintDialogForFile(profile, NULL, 769 print_dialog_cloud::CreatePrintDialogForFile(profile, NULL,
776 cloud_print_file, print_job_title, print_job_print_ticket, file_type); 770 cloud_print_file, print_job_title, print_job_print_ticket, file_type);
777 return true; 771 return true;
778 } 772 }
779 } 773 }
780 return false; 774 return false;
781 } 775 }
782 776
783 } // namespace print_dialog_cloud 777 } // namespace print_dialog_cloud
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698