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

Unified Diff: chrome/common/extensions/url_pattern.h

Issue 199074: Don't allow updating tabs to javascript URLs without host (Closed)
Patch Set: Remove unchanged file Created 11 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
Index: chrome/common/extensions/url_pattern.h
diff --git a/chrome/common/extensions/url_pattern.h b/chrome/common/extensions/url_pattern.h
index f69cd7ab22ee64d236a5814bd3f895ac4300098a..d952216429f123742a63527b78f337a496b2f946 100644
--- a/chrome/common/extensions/url_pattern.h
+++ b/chrome/common/extensions/url_pattern.h
@@ -98,6 +98,10 @@ class URLPattern {
// Gets the path the pattern matches with the leading slash. This can have
// embedded asterisks which are interpreted using glob rules.
std::string path() const { return path_; }
+ void set_path(const std::string& path) {
+ path_ = path;
+ path_escaped_ = "";
Erik does not do reviews 2009/09/10 18:23:21 Is this just unimplemented?
Aaron Boodman 2009/09/10 18:55:31 I'm resetting it because the escaped form is compu
+ }
private:
// Returns true if |test| matches our host.

Powered by Google App Engine
This is Rietveld 408576698