Commit d47af34d authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Reland "Move notification_helper/ to chrome/notification_helper/"

This is a reland of 850001f3, which caused
a pre-submit deadlock for chrome/browser/notifications/OWNERS.

This is now safe to land as the following CL has been landed:
https://chromium-review.googlesource.com/c/chromium/src/+/1024633

Original change's description:
> Move notification_helper/ to chrome/notification_helper/
>
> ... plus all the necessary code migration. A follow-up CL will be used
> to update relevant comments.
>
> Bug: 734095
> Change-Id: I8516c750518e10a366bdc1496e75a3c2f4f0898b
> Reviewed-on: https://chromium-review.googlesource.com/1022957
> Reviewed-by: John Abd-El-Malek <jam@chromium.org>
> Commit-Queue: Xi Cheng <chengx@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#552762}

Bug: 734095
Change-Id: Id4e0818d7e3ea2b0ea7633e883bc5cea42705167
Reviewed-on: https://chromium-review.googlesource.com/1024744
Commit-Queue: Xi Cheng <chengx@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Reviewed-by: default avatarXi Cheng <chengx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552971}
parent c42a51bf
......@@ -579,6 +579,7 @@ group("gn_all") {
"//chrome/install_static:install_static_unittests",
"//chrome/installer/gcapi",
"//chrome/installer/setup:setup_unittests",
"//chrome/notification_helper:notification_helper_unittests",
"//chrome_elf:chrome_elf_import_unittests",
"//chrome_elf:chrome_elf_unittests",
"//chrome_elf:dll_hash_main",
......@@ -587,7 +588,6 @@ group("gn_all") {
"//components/zucchini",
"//net:quic_client",
"//net:quic_server",
"//notification_helper:notification_helper_unittests",
"//sandbox/win:pocdll",
"//sandbox/win:sandbox_poc",
"//sandbox/win:sbox_integration_tests",
......
......@@ -1167,7 +1167,7 @@
'content/public/browser/platform_notification|'\
'content/public/common/platform_notification|'\
'content/renderer/notification_|'\
'notification_helper/|'\
'chrome/notification_helper/|'\
'third_party/WebKit/LayoutTests/external/wpt/notifications|'\
'third_party/WebKit/LayoutTests/http/tests/notifications|'\
'third_party/blink/renderer/modules/notifications|'\
......
......@@ -215,7 +215,7 @@ if (!is_android && !is_mac) {
]
data_deps = [
"//chrome/app/version_assembly:version_assembly_manifest",
"//notification_helper",
"//chrome/notification_helper",
]
if (win_console_app) {
......
......@@ -9,14 +9,14 @@
#define __WRL_CLASSIC_COM_STRICT__
#endif // __WRL_CLASSIC_COM_STRICT__
#include "notification_helper/com_server_module.h"
#include "chrome/notification_helper/com_server_module.h"
#include <wrl/module.h>
#include "base/metrics/histogram_macros.h"
#include "chrome/install_static/install_util.h"
#include "notification_helper/notification_activator.h"
#include "notification_helper/trace_util.h"
#include "chrome/notification_helper/notification_activator.h"
#include "chrome/notification_helper/trace_util.h"
namespace {
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
#define NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
#ifndef CHROME_NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
#define CHROME_NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
#include "base/synchronization/waitable_event.h"
#include "base/win/windows_types.h"
......@@ -51,4 +51,4 @@ class ComServerModule {
} // namespace notification_helper
#endif // NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
#endif // CHROME_NOTIFICATION_HELPER_COM_SERVER_MODULE_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "notification_helper/com_server_module.h"
#include "chrome/notification_helper/com_server_module.h"
#include <memory>
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "notification_helper/notification_activator.h"
#include "chrome/notification_helper/notification_activator.h"
#include <shellapi.h>
......@@ -10,8 +10,8 @@
#include "base/strings/string16.h"
#include "base/win/windows_types.h"
#include "chrome/common/chrome_switches.h"
#include "notification_helper/notification_helper_util.h"
#include "notification_helper/trace_util.h"
#include "chrome/notification_helper/notification_helper_util.h"
#include "chrome/notification_helper/trace_util.h"
namespace {
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
#define NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
#ifndef CHROME_NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
#define CHROME_NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
#include <NotificationActivationCallback.h>
#include <wrl/implements.h>
......@@ -39,4 +39,4 @@ class NotificationActivator
} // namespace notification_helper
#endif // NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
#endif // CHROME_NOTIFICATION_HELPER_NOTIFICATION_ACTIVATOR_H_
......@@ -15,10 +15,10 @@
#include "base/win/scoped_winrt_initializer.h"
#include "chrome/install_static/product_install_details.h"
#include "chrome/install_static/user_data_dir.h"
#include "notification_helper/com_server_module.h"
#include "notification_helper/notification_helper_crash_reporter_client.h"
#include "notification_helper/notification_helper_util.h"
#include "notification_helper/trace_util.h"
#include "chrome/notification_helper/com_server_module.h"
#include "chrome/notification_helper/notification_helper_crash_reporter_client.h"
#include "chrome/notification_helper/notification_helper_util.h"
#include "chrome/notification_helper/trace_util.h"
extern "C" int WINAPI wWinMain(HINSTANCE instance,
HINSTANCE prev_instance,
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "notification_helper/notification_helper_crash_reporter_client.h"
#include "chrome/notification_helper/notification_helper_crash_reporter_client.h"
#include <memory>
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
#define NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
#ifndef CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
#define CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
#include "base/files/file_path.h"
#include "base/macros.h"
......@@ -51,4 +51,4 @@ class NotificationHelperCrashReporterClient
DISALLOW_COPY_AND_ASSIGN(NotificationHelperCrashReporterClient);
};
#endif // NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
#endif // CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_CRASH_REPORTER_CLIENT_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "notification_helper/notification_helper_util.h"
#include "chrome/notification_helper/notification_helper_util.h"
#include "base/base_paths.h"
#include "base/files/file_util.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
#define NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
#ifndef CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
#define CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
#include "base/files/file_path.h"
......@@ -14,4 +14,4 @@ base::FilePath GetChromeExePath();
} // namespace notification_helper
#endif // NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
#endif // CHROME_NOTIFICATION_HELPER_NOTIFICATION_HELPER_UTIL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NOTIFICATION_HELPER_TRACE_UTIL_H_
#define NOTIFICATION_HELPER_TRACE_UTIL_H_
#ifndef CHROME_NOTIFICATION_HELPER_TRACE_UTIL_H_
#define CHROME_NOTIFICATION_HELPER_TRACE_UTIL_H_
#if defined(NDEBUG)
#define Trace(format, ...) ((void)0)
......@@ -12,4 +12,4 @@
void TraceImpl(const wchar_t* format, ...);
#endif // defined(NDEBUG)
#endif // NOTIFICATION_HELPER_TRACE_UTIL_H_
#endif // CHROME_NOTIFICATION_HELPER_TRACE_UTIL_H_
......@@ -3184,7 +3184,7 @@ test("unit_tests") {
deps += [ "//chrome/installer/util:with_no_strings" ]
data_deps += [ "//notification_helper" ]
data_deps += [ "//chrome/notification_helper" ]
}
}
......
......@@ -905,7 +905,7 @@
"type": "additional_compile_target",
},
"notification_helper_unittests": {
"label": "//notification_helper:notification_helper_unittests",
"label": "//chrome/notification_helper:notification_helper_unittests",
"type": "windowed_test_launcher",
},
"ocmock_support_unittests": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment