OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 array.reset(); | 438 array.reset(); |
439 dummy = dangling[kArraySize / 2]; | 439 dummy = dangling[kArraySize / 2]; |
440 } | 440 } |
441 | 441 |
442 // Make sure the assignments to the dummy value aren't optimized away. | 442 // Make sure the assignments to the dummy value aren't optimized away. |
443 base::debug::Alias(&dummy); | 443 base::debug::Alias(&dummy); |
444 } | 444 } |
445 #endif // ADDRESS_SANITIZER | 445 #endif // ADDRESS_SANITIZER |
446 | 446 |
447 static void MaybeHandleDebugURL(const GURL& url) { | 447 static void MaybeHandleDebugURL(const GURL& url) { |
448 if (!url.SchemeIs(chrome::kChromeUIScheme)) | 448 if (!url.SchemeIs(kChromeUIScheme)) |
449 return; | 449 return; |
450 if (url == GURL(kChromeUICrashURL)) { | 450 if (url == GURL(kChromeUICrashURL)) { |
451 CrashIntentionally(); | 451 CrashIntentionally(); |
452 } else if (url == GURL(kChromeUIKillURL)) { | 452 } else if (url == GURL(kChromeUIKillURL)) { |
453 base::KillProcess(base::GetCurrentProcessHandle(), 1, false); | 453 base::KillProcess(base::GetCurrentProcessHandle(), 1, false); |
454 } else if (url == GURL(kChromeUIHangURL)) { | 454 } else if (url == GURL(kChromeUIHangURL)) { |
455 for (;;) { | 455 for (;;) { |
456 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); | 456 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); |
457 } | 457 } |
458 } else if (url == GURL(kChromeUIShorthangURL)) { | 458 } else if (url == GURL(kChromeUIShorthangURL)) { |
(...skipping 5630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6089 for (size_t i = 0; i < icon_urls.size(); i++) { | 6089 for (size_t i = 0; i < icon_urls.size(); i++) { |
6090 WebURL url = icon_urls[i].iconURL(); | 6090 WebURL url = icon_urls[i].iconURL(); |
6091 if (!url.isEmpty()) | 6091 if (!url.isEmpty()) |
6092 urls.push_back(FaviconURL(url, | 6092 urls.push_back(FaviconURL(url, |
6093 ToFaviconType(icon_urls[i].iconType()))); | 6093 ToFaviconType(icon_urls[i].iconType()))); |
6094 } | 6094 } |
6095 SendUpdateFaviconURL(urls); | 6095 SendUpdateFaviconURL(urls); |
6096 } | 6096 } |
6097 | 6097 |
6098 } // namespace content | 6098 } // namespace content |
OLD | NEW |