Reland r286968: The CL borrows ShareDialog from Files.app and add it to Gallery.

Previous Review URL: https://codereview.chromium.org/431293002

BUG=374667
TEST=manually
R=yoshiki@chromium.org, mtomasz@chromium.org

Review URL: https://codereview.chromium.org/433733004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286975 0039d316-1c4b-4281-b951-d872f2087c98
  SingleDriveEntryPropertiesGetter(const base::FilePath local_path,
                                   linked_ptr<DriveEntryProperties> properties,
                                   Profile* const profile,
                                   const ResultCallback& callback)
      : callback_(callback),
        local_path_(local_path),
        properties_(properties),
        running_profile_(profile),
        file_owner_profile_(NULL),
        weak_ptr_factory_(this) {
    DCHECK(!callback_.is_null());
    DCHECK(profile);
  }

  SingleDriveEntryPropertiesGetter(const base::FilePath local_path,
                                   linked_ptr<DriveEntryProperties> properties,
                                   Profile* const profile,
                                   const ResultCallback& callback)
      : callback_(callback),
        local_path_(local_path),
        properties_(properties),
        running_profile_(profile),
        file_owner_profile_(NULL),
        weak_ptr_factory_(this) {
    DCHECK(!callback_.is_null());
    DCHECK(profile);
  }
