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

Side by Side Diff: chrome/browser/ui/browser_navigator.cc

Issue 2511683002: Remove unneeded stringprintf.h usage in chrome/ and net/ (Closed)
Patch Set: rebase Created 4 years, 1 month 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
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 "chrome/browser/ui/browser_navigator.h" 5 #include "chrome/browser/ui/browser_navigator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/browser/browser_about_handler.h" 13 #include "chrome/browser/browser_about_handler.h"
15 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/prefs/incognito_mode_prefs.h" 15 #include "chrome/browser/prefs/incognito_mode_prefs.h"
17 #include "chrome/browser/prerender/prerender_manager.h" 16 #include "chrome/browser/prerender/prerender_manager.h"
18 #include "chrome/browser/prerender/prerender_manager_factory.h" 17 #include "chrome/browser/prerender/prerender_manager_factory.h"
19 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/tab_contents/tab_util.h" 19 #include "chrome/browser/tab_contents/tab_util.h"
21 #include "chrome/browser/task_manager/web_contents_tags.h" 20 #include "chrome/browser/task_manager/web_contents_tags.h"
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 bool reverse_on_redirect = false; 667 bool reverse_on_redirect = false;
669 content::BrowserURLHandler::GetInstance()->RewriteURLIfNecessary( 668 content::BrowserURLHandler::GetInstance()->RewriteURLIfNecessary(
670 &rewritten_url, browser_context, &reverse_on_redirect); 669 &rewritten_url, browser_context, &reverse_on_redirect);
671 670
672 // Some URLs are mapped to uber subpages. Do not allow them in incognito. 671 // Some URLs are mapped to uber subpages. Do not allow them in incognito.
673 return !(rewritten_url.scheme_piece() == content::kChromeUIScheme && 672 return !(rewritten_url.scheme_piece() == content::kChromeUIScheme &&
674 rewritten_url.host_piece() == chrome::kChromeUIUberHost); 673 rewritten_url.host_piece() == chrome::kChromeUIUberHost);
675 } 674 }
676 675
677 } // namespace chrome 676 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/applescript/apple_event_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698