         }
     }
 
-    private func highlightDomain() {
+    private func updateTextWithURL() {
         if let httplessURL = url?.absoluteStringWithoutHTTPScheme(), let baseDomain = url?.baseDomain() {
+            // Highlight the base domain of the current URL.
             var attributedString = NSMutableAttributedString(string: httplessURL)
             let nsRange = NSMakeRange(0, count(httplessURL))
             attributedString.addAttribute(NSForegroundColorAttributeName, value: BrowserLocationViewUX.BaseURLFontColor, range: nsRange)

            attributedString.addAttribute(UIAccessibilitySpeechAttributePitch, value: NSNumber(double: BrowserLocationViewUX.BaseURLPitch), range: nsRange)
            attributedString.pitchSubstring(baseDomain, withPitch: BrowserLocationViewUX.HostPitch)
            editTextField.attributedText = attributedString
        }
    }


    var url: NSURL? {
        didSet {
            lockImageView.hidden = url?.scheme != "https"
            updateTextWithURL()
            setNeedsUpdateConstraints()
        }
    }
