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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 149643010: Cleanup: Move kChromeUIScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/url_utils.cc ('k') | content/renderer/web_ui_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/public/common/url_utils.cc ('k') | content/renderer/web_ui_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698