-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch to OmniboxEditModel::AdjustTextForCopy to get brave scheme.
- Loading branch information
Showing
6 changed files
with
42 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
chromium_src/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
patches/chrome-browser-ui-views-omnibox-omnibox_view_views.cc.patch
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
patches/components-omnibox-browser-omnibox_edit_model.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/components/omnibox/browser/omnibox_edit_model.cc b/components/omnibox/browser/omnibox_edit_model.cc | ||
index 3cfedd66eff30f1966c10fdb6a8b62961a61a8bb..ba76ebe4d5aa54f65db3b157884e5a4c6d9e7c78 100644 | ||
--- a/components/omnibox/browser/omnibox_edit_model.cc | ||
+++ b/components/omnibox/browser/omnibox_edit_model.cc | ||
@@ -384,6 +384,7 @@ void OmniboxEditModel::AdjustTextForCopy(int sel_min, | ||
(*text == display_text_ || *text == url_for_editing_)) { | ||
*url_from_text = controller()->GetLocationBarModel()->GetURL(); | ||
*write_url = true; | ||
+ BRAVE_ADJUST_TEXT_FOR_COPY | ||
|
||
// If the omnibox is displaying a URL, set the hyperlink text to the URL's | ||
// spec. This undoes any URL elisions. |