old_contents: #!/usr/bin/python
  # Copyright (c) 2011 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  """Utility class to build the Syzygy master BuildFactory's.
  
  Based on gclient_factory.py and adds Syzygy-specific steps."""
  
  from master.factory import gclient_factory
  from master.factory import syzygy_commands
  
  import config
  
  class SyzygyFactory(gclient_factory.GClientFactory):
    """Encapsulates data and methods common to the Syzygy master.cfg files."""
  
    def __init__(self, build_dir, target_platform=None):
      main = gclient_factory.GClientSolution(config.Master.syzygy_url + 'trunk',
                                             name='Syzygy')
      self.target_platform = target_platform
  
      custom_deps_list = [main]
  
      gclient_factory.GClientFactory.__init__(self, build_dir, custom_deps_list,
                                              target_platform=target_platform)
  
    def SyzygyFactory(self, target='release', clobber=False, tests=None,
                    mode=None, slave_type='BuilderTester', options=None,
                    compile_timeout=1200, build_url=None, project=None,
                    factory_properties=None, target_arch=None):
      factory = self.BaseFactory(factory_properties=factory_properties)
  
      syzygy_cmd_obj = syzygy_commands.SyzygyCommands(factory, target, '',
                                                self.target_platform,
                                                target_arch)
  
      syzygy_cmd_obj.AddClean()
      syzygy_cmd_obj.AddBuild()
  
      return factory
  
new_contents: #!/usr/bin/python
  # Copyright (c) 2011 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  """Utility class to build the Syzygy master BuildFactory's.
  
  Based on gclient_factory.py and adds Syzygy-specific steps."""
  
  from master.factory import gclient_factory
  from master.factory import syzygy_commands
  
  import config
  
  class SyzygyFactory(gclient_factory.GClientFactory):
    """Encapsulates data and methods common to the Syzygy master.cfg files."""
  
    def __init__(self, build_dir, target_platform=None):
      main = gclient_factory.GClientSolution(config.Master.syzygy_url + 'trunk',
                                             name='src')
      self.target_platform = target_platform
  
      custom_deps_list = [main]
  
      gclient_factory.GClientFactory.__init__(self, build_dir, custom_deps_list,
                                              target_platform=target_platform)
  
    def SyzygyFactory(self, target='release', clobber=False, tests=None,
                    mode=None, slave_type='BuilderTester', options=None,
                    compile_timeout=1200, build_url=None, project=None,
                    factory_properties=None, target_arch=None):
      factory = self.BaseFactory(factory_properties=factory_properties)
  
      syzygy_cmd_obj = syzygy_commands.SyzygyCommands(factory, target, '',
                                                self.target_platform,
                                                target_arch)
  
      syzygy_cmd_obj.AddClean()
      syzygy_cmd_obj.AddBuild()
  
      return factory
  
subject: Change Syzygy's gclient solution name from "Syzygy" to "src" to match other dependencies and DEPS hooks. Review URL: http://codereview.chromium.org/7057007