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

Side by Side Diff: chrome/browser/android/data_usage/data_use_ui_tab_model.cc

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: merge Created 3 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/data_usage/data_use_ui_tab_model.h" 5 #include "chrome/browser/android/data_usage/data_use_ui_tab_model.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 268 }
269 return true; 269 return true;
270 case ui::PAGE_TRANSITION_TYPED: 270 case ui::PAGE_TRANSITION_TYPED:
271 *transition_type = DataUseTabModel::TRANSITION_OMNIBOX_NAVIGATION; 271 *transition_type = DataUseTabModel::TRANSITION_OMNIBOX_NAVIGATION;
272 return true; 272 return true;
273 case ui::PAGE_TRANSITION_AUTO_BOOKMARK: 273 case ui::PAGE_TRANSITION_AUTO_BOOKMARK:
274 // Auto bookmark from newtab page. 274 // Auto bookmark from newtab page.
275 *transition_type = DataUseTabModel::TRANSITION_BOOKMARK; 275 *transition_type = DataUseTabModel::TRANSITION_BOOKMARK;
276 return true; 276 return true;
277 case ui::PAGE_TRANSITION_AUTO_TOPLEVEL: 277 case ui::PAGE_TRANSITION_AUTO_TOPLEVEL:
278 if (gurl == kChromeUIHistoryFrameURL || gurl == kChromeUIHistoryURL) { 278 if (gurl == kDeprecatedChromeUIHistoryFrameURL ||
279 gurl == kChromeUIHistoryURL) {
279 // History menu. 280 // History menu.
280 *transition_type = DataUseTabModel::TRANSITION_HISTORY_ITEM; 281 *transition_type = DataUseTabModel::TRANSITION_HISTORY_ITEM;
281 return true; 282 return true;
282 } 283 }
283 return false; 284 return false;
284 case ui::PAGE_TRANSITION_GENERATED: 285 case ui::PAGE_TRANSITION_GENERATED:
285 // Omnibox search (e.g., searching for "tacos"). 286 // Omnibox search (e.g., searching for "tacos").
286 *transition_type = DataUseTabModel::TRANSITION_OMNIBOX_SEARCH; 287 *transition_type = DataUseTabModel::TRANSITION_OMNIBOX_SEARCH;
287 return true; 288 return true;
288 case ui::PAGE_TRANSITION_RELOAD: 289 case ui::PAGE_TRANSITION_RELOAD:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 data_use_tab_model_->OnNavigationEvent( 345 data_use_tab_model_->OnNavigationEvent(
345 ui_event.tab_id, ui_event.transition_type, ui_event.url, 346 ui_event.tab_id, ui_event.transition_type, ui_event.url,
346 ui_event.package, nullptr); 347 ui_event.package, nullptr);
347 } 348 }
348 } 349 }
349 } 350 }
350 351
351 } // namespace android 352 } // namespace android
352 353
353 } // namespace chrome 354 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | chrome/browser/android/data_usage/data_use_ui_tab_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698