Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1515)

Unified Diff: plugin/win/config.cc

Issue 326001: Adding support for windows safari. This requires registering the o3d plugin w... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « plugin/cross/config_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/win/config.cc
===================================================================
--- plugin/win/config.cc (revision 29747)
+++ plugin/win/config.cc (working copy)
@@ -80,11 +80,12 @@
return true;
}
-// Checks user agent string. We only allow Firefox, Chrome, and IE.
+// Checks user agent string. We only allow Firefox, Chrome, Safari and IE.
bool CheckUserAgent(NPP npp, const std::string &user_agent) {
if (user_agent.find("Firefox") == user_agent.npos &&
user_agent.find("Chrome") == user_agent.npos &&
- user_agent.find("MSIE") == user_agent.npos) {
+ user_agent.find("MSIE") == user_agent.npos &&
+ user_agent.find("Safari") == user_agent.npos) {
std::string error = std::string("Unsupported user agent: ") + user_agent;
return AskUser(npp, error);
}
« no previous file with comments | « plugin/cross/config_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698