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

Unified Diff: extensions/renderer/content_watcher.cc

Issue 235943018: Move extensions bindings code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 8 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 | « extensions/renderer/content_watcher.h ('k') | extensions/renderer/context_menus_custom_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/content_watcher.cc
diff --git a/chrome/renderer/extensions/content_watcher.cc b/extensions/renderer/content_watcher.cc
similarity index 92%
rename from chrome/renderer/extensions/content_watcher.cc
rename to extensions/renderer/content_watcher.cc
index a7c00e60fd9a4e9b40ce133b0ed593ad176d8e88..1918ac505ebd8af171792b348dde8c080c567471 100644
--- a/chrome/renderer/extensions/content_watcher.cc
+++ b/extensions/renderer/content_watcher.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/renderer/extensions/content_watcher.h"
+#include "extensions/renderer/content_watcher.h"
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/render_view_visitor.h"
@@ -106,14 +106,15 @@ void ContentWatcher::NotifyBrowserOfChange(
}
}
std::vector<std::string> selector_strings;
- for (std::set<base::StringPiece>::const_iterator
- it = transitive_selectors.begin();
- it != transitive_selectors.end(); ++it)
+ for (std::set<base::StringPiece>::const_iterator it =
+ transitive_selectors.begin();
+ it != transitive_selectors.end();
+ ++it)
selector_strings.push_back(it->as_string());
content::RenderView* view =
content::RenderView::FromWebView(top_frame->view());
- view->Send(new ExtensionHostMsg_OnWatchedPageChange(
- view->GetRoutingID(), selector_strings));
+ view->Send(new ExtensionHostMsg_OnWatchedPageChange(view->GetRoutingID(),
+ selector_strings));
}
} // namespace extensions
« no previous file with comments | « extensions/renderer/content_watcher.h ('k') | extensions/renderer/context_menus_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698