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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 base::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 RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
693 registry->RegisterIntegerPref( 693 registry->RegisterIntegerPref(
694 prefs::kCloudPrintDialogWidth, 694 prefs::kCloudPrintDialogWidth,
695 kDefaultWidth, 695 kDefaultWidth,
696 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 696 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
697 registry->RegisterIntegerPref( 697 registry->RegisterIntegerPref(
698 prefs::kCloudPrintDialogHeight, 698 prefs::kCloudPrintDialogHeight,
699 kDefaultHeight, 699 kDefaultHeight,
700 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 700 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
701 } 701 }
702 702
(...skipping 75 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/printing/print_dialog_cloud.h ('k') | chrome/browser/profiles/chrome_version_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698