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

Side by Side Diff: chrome/browser/android/new_tab_page_url_handler.h

Issue 205983005: [Android] Rewrite old-style NTP URLs to new-style URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: register chrome-native as standard scheme, add back recent_tabs handling Created 6 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_
6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_
7
8 class GURL;
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 namespace chrome {
15 namespace android {
16
17 // Rewrites old-style Android NTP URLs to new-style NTP URLs:
18 // - chrome://newtab -> chrome-native://newtab
19 // - chrome://newtab#most_visited -> chrome-native://newtab
20 // - chrome://newtab#incognito -> chrome-native://newtab
21 // - chrome://newtab#bookmarks -> chrome-native://bookmarks
22 // - chrome://newtab#bookmarks:99 -> chrome-native://bookmarks
23 // - chrome://newtab#open_tabs -> chrome-native://recent-tabs
24 // - chrome-native://recent_tabs -> chrome-native://recent-tabs
25 //
26 // TODO(newt): Once most users have upgraded past M34, simplify this down to a
27 // single rule: chrome://newtab -> chrome-native://newtab
28 bool HandleAndroidNewTabURL(GURL* url,
29 content::BrowserContext* browser_context);
30
31 } // namespace android
32 } // namespace chrome
33
34 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_URL_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/new_tab_page_url_handler.cc » ('j') | chrome/common/chrome_content_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698