code: def get_profile_dir ():
      
      if os.name == 'nt':
          if "LOCALAPPDATA" in os.environ:
              basedir = unicode(os.environ["LOCALAPPDATA"], nt_filename_encoding)
          else:
              # read local appdata directory from registry
              from ..winutil import get_shell_folder
              try:
                  basedir = get_shell_folder("Local AppData")
              except EnvironmentError:
                  basedir = os.path.join(os.environ["USERPROFILE"], "Local Settings", "Application Data")
          dirpath = os.path.join(basedir, u"Google", u"Chrome", u"User Data")
      elif os.name == 'posix':
          basedir = unicode(os.environ["HOME"])
          if sys.platform == 'darwin':
              dirpath = os.path.join(basedir, u"Library", u"Application Support")
          else:
              dirpath = os.path.join(basedir, u".config")
          dirpath = os.path.join(dirpath, u"Google", u"Chrome")
      return dirpath
docs: Return path where all profiles of current user are stored.