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

Issue 1653013002: Abstract ToolbarModelImpl dependencies on //content. (Closed)

Created:
4 years, 10 months ago by sdefresne
Modified:
4 years, 10 months ago
CC:
achuith+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, dzhioev+watch_chromium.org, oshima+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Abstract ToolbarModelImpl dependencies on //content. Add following methods to ToolbarModelImpl to abstract the dependencies on content::WebContents. - GetURL(): fetches the URL to display, if it exists, or return false, - ShouldDisplayURL(): returns whether the URL should be displayed in the toolbar or not (embedder specific) - GetSecurityLevel(): returns the security level of the underlying page, independently of the editing status of the toolbar, - GetSearchTerms(): extracts the search terms for the current page from the content::WebContents (implementation depends on the embedder), - GetCertificate(): returns the certificate for the current page, if any, otherwise returns null. Inject the constant content::kMaxURLDisplayChars through the constructor of ToolbarModelImpl to allow sharing the code with iOS that cannot depend on content. TBR=dzhioev@chromium.org BUG=582921 Committed: https://crrev.com/4d623d703112ab992b4d48ca98d21ed78f850c68 Cr-Commit-Position: refs/heads/master@{#373317}

Patch Set 1 #

Patch Set 2 : Rebase (fix compilation on chromeos) #

Patch Set 3 : Rebase #

Patch Set 4 : Fix compilation on Mac #

Total comments: 15

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -137 lines) Patch
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/android/toolbar/toolbar_model_android.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/toolbar/toolbar_model_android.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_toolbar_model_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h View 1 2 3 4 2 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc View 1 2 3 4 3 chunks +114 lines, -7 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_delegate.h View 1 2 3 4 3 chunks +28 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.h View 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 8 chunks +13 lines, -107 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
sdefresne
pkasting: please take a look. rohitrao: FYI
4 years, 10 months ago (2016-02-01 17:08:53 UTC) #2
Peter Kasting
I don't really get why we have to inject the character limit. That constant isn't ...
4 years, 10 months ago (2016-02-02 23:51:31 UTC) #3
sdefresne
I'm injecting content::kMaxURLDisplayChars because I want to reuse ToolbarModelImpl with iOS and iOS cannot depends ...
4 years, 10 months ago (2016-02-03 13:14:17 UTC) #4
sdefresne
TBR-ing dzhioev@chromium.org for chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc chrome/browser/chromeos/login/ui/simple_web_view_dialog.h
4 years, 10 months ago (2016-02-03 13:20:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653013002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653013002/120001
4 years, 10 months ago (2016-02-03 18:14:18 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 10 months ago (2016-02-03 20:08:05 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 20:10:44 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4d623d703112ab992b4d48ca98d21ed78f850c68
Cr-Commit-Position: refs/heads/master@{#373317}

Powered by Google App Engine
This is Rietveld 408576698