OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #ifdef WEBRTC_IOS | 27 #ifdef WEBRTC_IOS |
28 #include <CFNetwork/CFNetwork.h> | 28 #include <CFNetwork/CFNetwork.h> |
29 #include "macconversion.h" | 29 #include "macconversion.h" |
30 #endif | 30 #endif |
31 | 31 |
32 #include <map> | 32 #include <map> |
33 #include <memory> | 33 #include <memory> |
34 | 34 |
35 #include "webrtc/base/arraysize.h" | 35 #include "webrtc/base/arraysize.h" |
| 36 #include "webrtc/base/checks.h" |
36 #include "webrtc/base/fileutils.h" | 37 #include "webrtc/base/fileutils.h" |
37 #include "webrtc/base/httpcommon.h" | 38 #include "webrtc/base/httpcommon.h" |
38 #include "webrtc/base/httpcommon-inl.h" | 39 #include "webrtc/base/httpcommon-inl.h" |
39 #include "webrtc/base/pathutils.h" | 40 #include "webrtc/base/pathutils.h" |
40 #include "webrtc/base/stringutils.h" | 41 #include "webrtc/base/stringutils.h" |
41 | 42 |
42 #define _TRY_JSPROXY 0 | 43 #define _TRY_JSPROXY 0 |
43 #define _TRY_WM_FINDPROXY 0 | 44 #define _TRY_WM_FINDPROXY 0 |
44 | 45 |
45 #if defined(WEBRTC_WIN) | 46 #if defined(WEBRTC_WIN) |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 return false; | 404 return false; |
404 } | 405 } |
405 path->SetFolder(std::string(user_home)); | 406 path->SetFolder(std::string(user_home)); |
406 path->AppendFolder(".mozilla"); | 407 path->AppendFolder(".mozilla"); |
407 path->AppendFolder("firefox"); | 408 path->AppendFolder("firefox"); |
408 #endif // WEBRTC_WIN | 409 #endif // WEBRTC_WIN |
409 return true; | 410 return true; |
410 } | 411 } |
411 | 412 |
412 bool GetDefaultFirefoxProfile(Pathname* profile_path) { | 413 bool GetDefaultFirefoxProfile(Pathname* profile_path) { |
413 ASSERT(NULL != profile_path); | 414 RTC_DCHECK(NULL != profile_path); |
414 Pathname path; | 415 Pathname path; |
415 if (!GetFirefoxProfilePath(&path)) { | 416 if (!GetFirefoxProfilePath(&path)) { |
416 return false; | 417 return false; |
417 } | 418 } |
418 | 419 |
419 #if USE_FIREFOX_PROFILES_INI | 420 #if USE_FIREFOX_PROFILES_INI |
420 // [Profile0] | 421 // [Profile0] |
421 // Name=default | 422 // Name=default |
422 // IsRelative=1 | 423 // IsRelative=1 |
423 // Path=Profiles/2de53ejb.default | 424 // Path=Profiles/2de53ejb.default |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 if (!result) { | 1282 if (!result) { |
1282 // Either auto detection is not supported or we simply didn't | 1283 // Either auto detection is not supported or we simply didn't |
1283 // find any proxy, reset type. | 1284 // find any proxy, reset type. |
1284 proxy->type = rtc::PROXY_NONE; | 1285 proxy->type = rtc::PROXY_NONE; |
1285 } | 1286 } |
1286 } | 1287 } |
1287 return result; | 1288 return result; |
1288 } | 1289 } |
1289 | 1290 |
1290 } // namespace rtc | 1291 } // namespace rtc |
OLD | NEW |