Based on your financial expertise, provide your response or viewpoint on the given financial question or topic. The response format is open.

How does historical data get adjusted for dividends, exactly?
Various types of corporate actions will precipitate a price adjustment.  In the case of dividends, the cash that will be paid out as a dividend to share holders forms part of a company's equity.  Once the company pays a dividend, that cash is no longer part of the company's equity and the share price is adjusted accordingly. For example, if Apple is trading at $101 per share at the close of business on the day prior to going ex-dividend, and a dividend of $1 per share has been declared, then the closing price will be adjusted by $1 to give a closing quote of $100. Although the dividend is not paid out until the dividend pay date, the share price is adjusted at the close of business on the day prior to the ex-dividend date since any new purchases on or after the ex-dividend date are not entitled to receive the dividend distribution, so in effect new purchases are buying on the basis of a reduced equity.   It will be the exchange providing the quote that performs the price adjustment, not Google or Yahoo.  The exchange will perform the adjustment at the close prior to each ex-dividend date, so when you are looking at historical data you are looking at price data that includes each adjustment.