Commit 4dad5674 authored by Owen Min's avatar Owen Min Committed by Commit Bot

Renaming extension request notification folder

Rename c/b/enterprise/reporting/notification to
c/b/enterprise/reporting/extension_request so that the
extension_request_observer can be used by real-time reporting which is
not part of notification.

Also move extension_request_policy_handler into the extension_request/.

Bug: 1137964
Change-Id: I7c8af718333494114d20416fcfa9415bc8f7a6be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2468467Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Owen Min <zmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817515}
parent c8bc157d
......@@ -3394,14 +3394,14 @@ static_library("browser") {
"enterprise/reporting/browser_report_generator_desktop.h",
"enterprise/reporting/extension_info.cc",
"enterprise/reporting/extension_info.h",
"enterprise/reporting/extension_request_policy_handler.cc",
"enterprise/reporting/extension_request_policy_handler.h",
"enterprise/reporting/notification/extension_request_notification.cc",
"enterprise/reporting/notification/extension_request_notification.h",
"enterprise/reporting/notification/extension_request_observer.cc",
"enterprise/reporting/notification/extension_request_observer.h",
"enterprise/reporting/notification/extension_request_observer_factory.cc",
"enterprise/reporting/notification/extension_request_observer_factory.h",
"enterprise/reporting/extension_request/extension_request_notification.cc",
"enterprise/reporting/extension_request/extension_request_notification.h",
"enterprise/reporting/extension_request/extension_request_observer.cc",
"enterprise/reporting/extension_request/extension_request_observer.h",
"enterprise/reporting/extension_request/extension_request_observer_factory.cc",
"enterprise/reporting/extension_request/extension_request_observer_factory.h",
"enterprise/reporting/extension_request/extension_request_policy_handler.cc",
"enterprise/reporting/extension_request/extension_request_policy_handler.h",
"enterprise/reporting/prefs.cc",
"enterprise/reporting/prefs.h",
"enterprise/reporting/profile_report_generator_desktop.cc",
......
......@@ -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 "chrome/browser/enterprise/reporting/notification/extension_request_notification.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_notification.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 CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_NOTIFICATION_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_NOTIFICATION_H_
#ifndef CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_NOTIFICATION_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_NOTIFICATION_H_
#include "ui/message_center/public/cpp/notification_delegate.h"
......@@ -57,4 +57,4 @@ class ExtensionRequestNotification
} // namespace enterprise_reporting
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_NOTIFICATION_H_
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_NOTIFICATION_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 "chrome/browser/enterprise/reporting/notification/extension_request_notification.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_notification.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.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 "chrome/browser/enterprise/reporting/notification/extension_request_observer.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/browser_process.h"
......
......@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_H_
#ifndef CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_H_
#include "chrome/browser/enterprise/reporting/notification/extension_request_notification.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_notification.h"
#include "chrome/browser/extensions/extension_management.h"
class Profile;
......@@ -55,4 +55,4 @@ class ExtensionRequestObserver
} // namespace enterprise_reporting
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_H_
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_H_
......@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/enterprise/reporting/notification/extension_request_observer_factory.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/enterprise/reporting/notification/extension_request_observer.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer.h"
#include "chrome/browser/profiles/profile_manager.h"
namespace enterprise_reporting {
......@@ -13,7 +13,6 @@ namespace enterprise_reporting {
ExtensionRequestObserverFactory::ExtensionRequestObserverFactory(
Profile* profile)
: profile_(profile) {
if (profile) {
OnProfileAdded(profile);
} else {
......
......@@ -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 CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
#ifndef CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
#include <map>
......@@ -51,4 +51,4 @@ class ExtensionRequestObserverFactory : public ProfileManagerObserver,
} // namespace enterprise_reporting
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_NOTIFICATION_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_OBSERVER_FACTORY_H_
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/enterprise/reporting/notification/extension_request_observer_factory.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer_factory.h"
#include "chrome/browser/enterprise/reporting/notification/extension_request_observer.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "content/public/test/browser_task_environment.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 "chrome/browser/enterprise/reporting/notification/extension_request_observer.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer.h"
#include "base/json/json_reader.h"
#include "base/test/metrics/histogram_tester.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 "chrome/browser/enterprise/reporting/extension_request_policy_handler.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_policy_handler.h"
#include "base/values.h"
#include "chrome/common/pref_names.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 CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_POLICY_HANDLER_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_POLICY_HANDLER_H_
#ifndef CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_POLICY_HANDLER_H_
#define CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_POLICY_HANDLER_H_
#include "components/policy/core/browser/configuration_policy_handler.h"
......@@ -25,4 +25,4 @@ class ExtensionRequestPolicyHandler : public policy::TypeCheckingPolicyHandler {
} // namespace enterprise_reporting
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_POLICY_HANDLER_H_
#endif // CHROME_BROWSER_ENTERPRISE_REPORTING_EXTENSION_REQUEST_EXTENSION_REQUEST_POLICY_HANDLER_H_
......@@ -7,7 +7,7 @@
#include "components/enterprise/browser/reporting/report_scheduler.h"
#include "chrome/browser/enterprise/reporting/notification/extension_request_observer_factory.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer_factory.h"
#include "chrome/browser/upgrade_detector/build_state_observer.h"
class Profile;
......
......@@ -106,7 +106,7 @@
#include "chrome/browser/download/download_dir_policy_handler.h"
#include "chrome/browser/enterprise/connectors/connectors_prefs.h"
#include "chrome/browser/enterprise/connectors/enterprise_connectors_policy_handler.h"
#include "chrome/browser/enterprise/reporting/extension_request_policy_handler.h"
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_policy_handler.h"
#include "chrome/browser/media/kaleidoscope/kaleidoscope_prefs.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/policy/local_sync_policy_handler.h"
......
......@@ -4337,9 +4337,9 @@ test("unit_tests") {
"../browser/enterprise/connectors/service_provider_config_unittest.cc",
"../browser/enterprise/reporting/browser_report_generator_unittest.cc",
"../browser/enterprise/reporting/extension_info_unittest.cc",
"../browser/enterprise/reporting/notification/extension_request_notification_unittest.cc",
"../browser/enterprise/reporting/notification/extension_request_observer_factory_unittest.cc",
"../browser/enterprise/reporting/notification/extension_request_observer_unittest.cc",
"../browser/enterprise/reporting/extension_request/extension_request_notification_unittest.cc",
"../browser/enterprise/reporting/extension_request/extension_request_observer_factory_unittest.cc",
"../browser/enterprise/reporting/extension_request/extension_request_observer_unittest.cc",
"../browser/enterprise/reporting/policy_info_unittest.cc",
"../browser/enterprise/reporting/profile_report_generator_unittest.cc",
"../browser/enterprise/reporting/report_generator_unittest.cc",
......
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