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

Issue 2034573002: [Cleanup] Factor out common code.

Created:
4 years, 6 months ago by groby-ooo-7-16
Modified:
4 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cleanup] Factor out common code. Take code shared between TabManager and session restore, put it in a central place. BUG=none

Patch Set 1 #

Total comments: 4

Patch Set 2 : Wherein we relearn that "commit -a" doesn't add new files. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -63 lines) Patch
M chrome/browser/memory/tab_manager.cc View 3 chunks +2 lines, -19 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/sessions/session_restore_delegate.cc View 2 chunks +4 lines, -26 lines 0 comments Download
M chrome/browser/ui/chrome_pages.h View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/ui/chrome_pages.cc View 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/ui/chrome_pages_unittest.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
groby-ooo-7-16
PTAL
4 years, 6 months ago (2016-06-02 01:44:42 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034573002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2034573002/1
4 years, 6 months ago (2016-06-02 01:46:49 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/212785) mac_chromium_rel_ng on ...
4 years, 6 months ago (2016-06-02 02:00:03 UTC) #5
Dan Beam
i think you forgot to `git add chrome_pages_unittest.cc` https://codereview.chromium.org/2034573002/diff/1/chrome/browser/ui/chrome_pages.cc File chrome/browser/ui/chrome_pages.cc (right): https://codereview.chromium.org/2034573002/diff/1/chrome/browser/ui/chrome_pages.cc#newcode148 chrome/browser/ui/chrome_pages.cc:148: // ...
4 years, 6 months ago (2016-06-02 02:20:38 UTC) #6
Dan Beam
https://codereview.chromium.org/2034573002/diff/1/chrome/browser/ui/chrome_pages.cc File chrome/browser/ui/chrome_pages.cc (right): https://codereview.chromium.org/2034573002/diff/1/chrome/browser/ui/chrome_pages.cc#newcode152 chrome/browser/ui/chrome_pages.cc:152: return true; On 2016/06/02 02:20:38, Dan Beam wrote: > ...
4 years, 6 months ago (2016-06-02 02:20:49 UTC) #7
Dan Beam
why can't we just use contents->GetBrowserContext() instead of passing the URL from |contents|? https://code.google.com/p/chromium/codesearch#chromium/src/content/public/browser/web_contents.h&q=webcontents&sq=package:chromium&type=cs&l=199
4 years, 6 months ago (2016-06-02 02:22:42 UTC) #9
groby-ooo-7-16
sky:PTAL On 2016/06/02 02:22:42, Dan Beam wrote: > why can't we just use contents->GetBrowserContext() instead ...
4 years, 6 months ago (2016-06-02 19:20:07 UTC) #12
Dan Beam
On 2016/06/02 19:20:07, groby wrote: > sky:PTAL > > On 2016/06/02 02:22:42, Dan Beam wrote: ...
4 years, 6 months ago (2016-06-02 19:35:10 UTC) #13
sky
4 years, 6 months ago (2016-06-02 21:46:39 UTC) #15
https://codereview.chromium.org/2034573002/diff/20001/chrome/browser/ui/chrom...
File chrome/browser/ui/chrome_pages.h (right):

https://codereview.chromium.org/2034573002/diff/20001/chrome/browser/ui/chrom...
chrome/browser/ui/chrome_pages.h:41: bool IsInternalPage(const GURL& url);
'Internal' is confusing here. Why isn't chrome://omnibox considered 'internal'?

Powered by Google App Engine
This is Rietveld 408576698