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

Unified Diff: components/content_settings/core/common/permission_request_id.cc

Issue 591443002: Componentize permission_request_id.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/content_settings/core/common/permission_request_id.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/content_settings/core/common/permission_request_id.cc
diff --git a/chrome/browser/content_settings/permission_request_id.cc b/components/content_settings/core/common/permission_request_id.cc
similarity index 88%
rename from chrome/browser/content_settings/permission_request_id.cc
rename to components/content_settings/core/common/permission_request_id.cc
index cc6676197124b158fc655dc93d74aadfb85f3955..0d963a4a752a923ccca26e617b12eefc9a9054cb 100644
--- a/chrome/browser/content_settings/permission_request_id.cc
+++ b/components/content_settings/core/common/permission_request_id.cc
@@ -2,11 +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/content_settings/permission_request_id.h"
+#include "components/content_settings/core/common/permission_request_id.h"
#include "base/strings/stringprintf.h"
-
PermissionRequestID::PermissionRequestID(int render_process_id,
int render_view_id,
int bridge_id,
@@ -22,13 +21,13 @@ PermissionRequestID::~PermissionRequestID() {
bool PermissionRequestID::Equals(const PermissionRequestID& other) const {
return IsForSameTabAs(other) && (bridge_id_ == other.bridge_id_) &&
- (origin_ == other.origin());
+ (origin_ == other.origin());
}
bool PermissionRequestID::IsForSameTabAs(
const PermissionRequestID& other) const {
return (render_process_id_ == other.render_process_id_) &&
- (render_view_id_ == other.render_view_id_);
+ (render_view_id_ == other.render_view_id_);
}
std::string PermissionRequestID::ToString() const {
« no previous file with comments | « components/content_settings/core/common/permission_request_id.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698