From f920f91f55cb5d549b5048716326ab21914bdff6 Mon Sep 17 00:00:00 2001 From: "gene@google.com" Date: Thu, 11 Nov 2010 19:25:31 +0000 Subject: Fix warnings on Mac that has been reported by Eric. "warning: 'cloud_print::PrintSystemCUPS' has a field 'cloud_print::PrintSystemCUPS::printer_map_' whose type uses the anonymous namespace" For some reasons my machine did not produce such warnings and print_system_cups.cc compiled just fine. Eric, Could you please verify this fixes the issue? BUG=none TEST=Verify no warnings produced on Mac Review URL: http://codereview.chromium.org/4632004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65829 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/service/cloud_print/print_system_cups.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/service/cloud_print/print_system_cups.cc') diff --git a/chrome/service/cloud_print/print_system_cups.cc b/chrome/service/cloud_print/print_system_cups.cc index ad57466..fe734b0 100644 --- a/chrome/service/cloud_print/print_system_cups.cc +++ b/chrome/service/cloud_print/print_system_cups.cc @@ -45,6 +45,10 @@ const int kCheckForPrinterUpdatesMs = 6*60*60*1000; // Job update timeput const int kJobUpdateTimeoutMs = 5000; +} // namespace + +namespace cloud_print { + struct PrintServerInfoCUPS { GURL url; scoped_refptr backend; @@ -56,10 +60,6 @@ struct PrintServerInfoCUPS { CapsMap caps_cache; }; -} // namespace - -namespace cloud_print { - class PrintSystemCUPS : public PrintSystem { public: explicit PrintSystemCUPS(const DictionaryValue* print_system_settings); -- cgit v1.1