| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 if (error.length()) { | 203 if (error.length()) { |
| 204 O3D_ERROR(GetServiceLocator(npp)) << error; | 204 O3D_ERROR(GetServiceLocator(npp)) << error; |
| 205 } else { | 205 } else { |
| 206 O3D_ERROR(GetServiceLocator(npp)) | 206 O3D_ERROR(GetServiceLocator(npp)) |
| 207 << "Could not initialize the graphics driver."; | 207 << "Could not initialize the graphics driver."; |
| 208 } | 208 } |
| 209 return false; | 209 return false; |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 // Check User agent. Only Firefox, Chrome and IE are supported. | 213 // Check User agent. Only Firefox, Chrome, Safari and IE are supported. |
| 214 std::string user_agent = GetUserAgent(npp); | 214 std::string user_agent = GetUserAgent(npp); |
| 215 if (!CheckUserAgent(npp, user_agent)) return false; | 215 if (!CheckUserAgent(npp, user_agent)) return false; |
| 216 return true; | 216 return true; |
| 217 } | 217 } |
| 218 } // namespace o3d | 218 } // namespace o3d |
| OLD | NEW |