-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CrOS Settings: Convert search handlers to TS
Additionally moves the updated files out of the top-level directory and into the search/ subfolder. Bug: chromium:1315757 Test: browser_tests --gtest_filter='OSSettingsOsSettingsSearchBox*' Test: Searching for settings and personalization settings Change-Id: I19d4b3b83ce0e2fb81ee08b5224deaa4b35074a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4018076 Commit-Queue: Wes Okuhara <wesokuhara@google.com> Reviewed-by: Jeffrey Young <cowmoo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1070594}
- Loading branch information
Wes Okuhara
authored and
Chromium LUCI CQ
committed
Nov 12, 2022
1 parent
b7ece23
commit 2e95c97
Showing
10 changed files
with
58 additions
and
104 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
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
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
38 changes: 0 additions & 38 deletions
38
chrome/browser/resources/settings/chromeos/personalization_search_handler.js
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
28 changes: 28 additions & 0 deletions
28
chrome/browser/resources/settings/chromeos/search/personalization_search_handler.ts
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,28 @@ | ||
// Copyright 2022 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
/** | ||
* @fileoverview | ||
* Provides functions used for personalization search, results of which link to | ||
* Personalization App. | ||
* Also provides a way to inject a test implementation for verifying | ||
* personalization search. | ||
*/ | ||
|
||
import {SearchHandler, SearchHandlerInterface} from '../../mojom-webui/personalization/search.mojom-webui.js'; | ||
|
||
let personalizationSearchHandler: SearchHandlerInterface|null = null; | ||
|
||
export function setPersonalizationSearchHandlerForTesting( | ||
testSearchHandler: SearchHandlerInterface): void { | ||
personalizationSearchHandler = testSearchHandler; | ||
} | ||
|
||
export function getPersonalizationSearchHandler(): SearchHandlerInterface { | ||
if (!personalizationSearchHandler) { | ||
personalizationSearchHandler = SearchHandler.getRemote(); | ||
} | ||
|
||
return personalizationSearchHandler; | ||
} |
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