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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/app_codelab7_useridentification.html

Issue 219213007: Remove .html extension from links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 <h1 id="lab_7_user_identity">Access User's Data</h1> 1 <h1 id="lab_7_user_identity">Access User's Data</h1>
2 2
3 <p>Most modern applications are attached to the web to synchronize data. When sy nchronizing data, you need to identify who the user is. 3 <p>Most modern applications are attached to the web to synchronize data. When sy nchronizing data, you need to identify who the user is.
4 Chrome Apps come with an <a href="experimental.identity.html">identity API</a> t hat makes it easy to integrate either with Google accounts or with any other ser vice that supports OAuth.</p> 4 Chrome Apps come with an <a href="experimental.identity">identity API</a> that m akes it easy to integrate either with Google accounts or with any other service that supports OAuth.</p>
5 5
6 <ol> 6 <ol>
7 <li> Built in - Google Authenticiation</li> 7 <li> Built in - Google Authenticiation</li>
8 <li> Third Party Authentication (Twitter, Foursquare, etc.)</li> 8 <li> Third Party Authentication (Twitter, Foursquare, etc.)</li>
9 </ol> 9 </ol>
10 10
11 <p class="warning"><b>Warning:</b> 11 <p class="warning"><b>Warning:</b>
12 Apps with authentication require the experimental permission in the 12 Apps with authentication require the experimental permission in the
13 <code>manifest.json</code> and, until they came out of experimental state, 13 <code>manifest.json</code> and, until they came out of experimental state,
14 they cannot be uploaded to the Chrome Web Store. 14 they cannot be uploaded to the Chrome Web Store.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 <p>Replace the following line in the code above: 136 <p>Replace the following line in the code above:
137 <pre data-filename="controller.js"> 137 <pre data-filename="controller.js">
138 var clientId = &quot;&lt;GET_YOURS_AT_https://code.google.com/apis/console&gt; &quot;; 138 var clientId = &quot;&lt;GET_YOURS_AT_https://code.google.com/apis/console&gt; &quot;;
139 </pre> 139 </pre>
140 with your own project&#39;s Client ID that you got from the Google API Console. 140 with your own project&#39;s Client ID that you got from the Google API Console.
141 Should look like this: 141 Should look like this:
142 <pre data-filename="controller.js"> 142 <pre data-filename="controller.js">
143 var clientId = &quot;xxxxxxxxxxxxxx.apps.googleusercontent.com&quot;; 143 var clientId = &quot;xxxxxxxxxxxxxx.apps.googleusercontent.com&quot;;
144 </pre></p></li> 144 </pre></p></li>
145 <li><p>Now we just need a button that starts the import process. Update the <cod e>index.html</code> to include <code>gapi_tasks.js</code> and add a new button t o call <code>importFromGTasks</code>: 145 <li><p>Now we just need a button that starts the import process. Update the <cod e>index</code> to include <code>gapi_tasks.js</code> and add a new button to cal l <code>importFromGTasks</code>:
mkearney1 2014/04/09 19:43:29 Keep .html in as it refers to a filename in sample
146 </p> 146 </p>
147 147
148 <tabs data-group="source"> 148 <tabs data-group="source">
149 149
150 <header tabindex="0" data-value="angular">Angular</header> 150 <header tabindex="0" data-value="angular">Angular</header>
151 <header tabindex="0" data-value="js">JavaScript</header> 151 <header tabindex="0" data-value="js">JavaScript</header>
152 152
153 <content> 153 <content>
154 <pre data-filename="index.html"> 154 <pre data-filename="index">
mkearney1 2014/04/09 19:43:29 Keep .html in as it refers to a filename in sample
155 &lt;script src=&quot;gapi_tasks.js&quot;&gt;&lt;/script&gt; 155 &lt;script src=&quot;gapi_tasks.js&quot;&gt;&lt;/script&gt;
156 ... 156 ...
157 &lt;button ng-click=&quot;importFromGTasks()&quot;&gt;import tasks from GTasks&l t;/button&gt; 157 &lt;button ng-click=&quot;importFromGTasks()&quot;&gt;import tasks from GTasks&l t;/button&gt;
158 </pre> 158 </pre>
159 </content> 159 </content>
160 <content> 160 <content>
161 <pre data-filename="index.html"> 161 <pre data-filename="index">
162 &lt;button id="importGTasks"&gt;import tasks from GTasks&lt;/button&gt; 162 &lt;button id="importGTasks"&gt;import tasks from GTasks&lt;/button&gt;
mkearney1 2014/04/09 19:43:29 Keep .html in as it refers to a filename in sample
163 ... 163 ...
164 &lt;script src="gapi_tasks.js"&gt;&lt;/script&gt; 164 &lt;script src="gapi_tasks.js"&gt;&lt;/script&gt;
165 </pre> 165 </pre>
166 </content> 166 </content>
167 167
168 </tabs></li> 168 </tabs></li>
169 </ol> 169 </ol>
170 170
171 <h3 id="results">Check the results</h3> 171 <h3 id="results">Check the results</h3>
172 172
173 <p>If you get stuck and want to see the app in action, 173 <p>If you get stuck and want to see the app in action,
174 go to <code>chrome://extensions</code>, 174 go to <code>chrome://extensions</code>,
175 load the unpacked 175 load the unpacked
176 <a href="https://github.com/GoogleChrome/chrome-app-codelab/tree/master/lab7_use ridentification/angularjs">AngularJS app</a> or 176 <a href="https://github.com/GoogleChrome/chrome-app-codelab/tree/master/lab7_use ridentification/angularjs">AngularJS app</a> or
177 <a href="https://github.com/GoogleChrome/chrome-app-codelab/tree/master/lab7_use ridentification/javascript">JavaScript app</a>, 177 <a href="https://github.com/GoogleChrome/chrome-app-codelab/tree/master/lab7_use ridentification/javascript">JavaScript app</a>,
178 and launch the app from a new tab.</p> 178 and launch the app from a new tab.</p>
179 179
180 <h2 id="you_should_also_read">You should also read</h2> 180 <h2 id="you_should_also_read">You should also read</h2>
181 181
182 <p><a href="app_identity.html">Identify User</a> tutorial</p> 182 <p><a href="app_identity">Identify User</a> tutorial</p>
183 183
184 <h2 id="what_39_s_next_">What's next?</h2> 184 <h2 id="what_39_s_next_">What's next?</h2>
185 185
186 <p>In <a href="app_codelab8_webresources.html">7 - Access Web Resources</a>, 186 <p>In <a href="app_codelab8_webresources">7 - Access Web Resources</a>,
187 you will learn how to load and show images from a remote URL.</p> 187 you will learn how to load and show images from a remote URL.</p>
188 188
189 <p class="note"><b>Note:</b> Up until now, the code in each lab builds upon the previous lab code sample. 189 <p class="note"><b>Note:</b> Up until now, the code in each lab builds upon the previous lab code sample.
190 We&#39;ve decided not to include the user identification code changes in the rem ainder of the lab since the <code>identity API</code> is still experimental and as such it would prevent you from publishing your final code to the Chrome Web S tore.</p> 190 We&#39;ve decided not to include the user identification code changes in the rem ainder of the lab since the <code>identity API</code> is still experimental and as such it would prevent you from publishing your final code to the Chrome Web S tore.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698