Fix crashes when dragging links
Turns out we needed to implement ContentClient::GetNativeImageNamed, which is called to get the default drag image.
This commit is contained in:
parent
73d467d657
commit
676e92e322
2 changed files with 6 additions and 1 deletions
|
@ -33,4 +33,8 @@ base::StringPiece ContentClient::GetDataResource(int resource_id, ui::ScaleFacto
|
||||||
return ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(resource_id, scale_factor);
|
return ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(resource_id, scale_factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const {
|
||||||
|
return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ private:
|
||||||
virtual std::string GetProduct() const OVERRIDE;
|
virtual std::string GetProduct() const OVERRIDE;
|
||||||
virtual std::string GetUserAgent() const OVERRIDE;
|
virtual std::string GetUserAgent() const OVERRIDE;
|
||||||
virtual base::StringPiece GetDataResource(int resource_id, ui::ScaleFactor) const OVERRIDE;
|
virtual base::StringPiece GetDataResource(int resource_id, ui::ScaleFactor) const OVERRIDE;
|
||||||
|
virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(ContentClient);
|
DISALLOW_COPY_AND_ASSIGN(ContentClient);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue